Package com.google.api.gax.core
Class FixedCredentialsProvider
java.lang.Object
com.google.api.gax.core.FixedCredentialsProvider
- All Implemented Interfaces:
CredentialsProvider
FixedCredentialsProvider is a CredentialsProvider which always provides the same credentials.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FixedCredentialsProvidercreate(com.google.auth.Credentials credentials) Creates a FixedCredentialsProvider.abstract com.google.auth.CredentialsGets the credentials which will be used to call the service.
-
Constructor Details
-
FixedCredentialsProvider
public FixedCredentialsProvider()
-
-
Method Details
-
getCredentials
Description 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
-
create
Creates a FixedCredentialsProvider.
-