Package com.google.api.gax.core
Class GoogleCredentialsProvider
- java.lang.Object
-
- com.google.api.gax.core.GoogleCredentialsProvider
-
- All Implemented Interfaces:
CredentialsProvider
public abstract class GoogleCredentialsProvider extends Object implements CredentialsProvider
GoogleCredentialsProvider acquires credentials using Application Default Credentials.For more information on Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGoogleCredentialsProvider.Builder
-
Constructor Summary
Constructors Constructor Description GoogleCredentialsProvider()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description com.google.auth.CredentialsgetCredentials()Gets the credentials which will be used to call the service.abstract List<String>getJwtEnabledScopes()abstract List<String>getScopesToApply()abstract booleangetUseJwtAccessWithScope()static GoogleCredentialsProvider.BuildernewBuilder()abstract GoogleCredentialsProvider.BuildertoBuilder()
-
-
-
Method Detail
-
getUseJwtAccessWithScope
@BetaApi public abstract boolean getUseJwtAccessWithScope()
-
getCredentials
public com.google.auth.Credentials getCredentials() throws IOExceptionDescription copied from interface:CredentialsProviderGets 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.- Specified by:
getCredentialsin interfaceCredentialsProvider- Throws:
IOException
-
newBuilder
public static GoogleCredentialsProvider.Builder newBuilder()
-
toBuilder
public abstract GoogleCredentialsProvider.Builder toBuilder()
-
-