Interface CredentialsProvider

All Known Implementing Classes:
FixedCredentialsProvider, GoogleCredentialsProvider, NoCredentialsProvider

public interface CredentialsProvider
Provides an interface to hold and acquire the credentials that will be used to call the service.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.auth.Credentials
    Gets the credentials which will be used to call the service.
  • Method Details

    • getCredentials

      com.google.auth.Credentials getCredentials() throws IOException
      Gets the credentials which will be used to call the service. If the credentials have not been acquired yet, then they will be acquired when this function is called.
      Throws:
      IOException