Package com.google.api.gax.core
Class FixedCredentialsProvider
- java.lang.Object
-
- com.google.api.gax.core.FixedCredentialsProvider
-
- All Implemented Interfaces:
CredentialsProvider
public abstract class FixedCredentialsProvider extends Object implements CredentialsProvider
FixedCredentialsProvider is a CredentialsProvider which always provides the same credentials.
-
-
Constructor Summary
Constructors Constructor Description FixedCredentialsProvider()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static FixedCredentialsProvider
create(com.google.auth.Credentials credentials)
Creates a FixedCredentialsProvider.abstract com.google.auth.Credentials
getCredentials()
Gets the credentials which will be used to call the service.
-
-
-
Method Detail
-
getCredentials
@Nullable public abstract com.google.auth.Credentials getCredentials()
Description copied from interface:CredentialsProvider
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.- Specified by:
getCredentials
in interfaceCredentialsProvider
-
create
public static FixedCredentialsProvider create(com.google.auth.Credentials credentials)
Creates a FixedCredentialsProvider.
-
-