Class FixedCredentialsProvider (2.8.1)

public abstract class FixedCredentialsProvider implements CredentialsProvider

FixedCredentialsProvider is a CredentialsProvider which always provides the same credentials.

Inheritance

java.lang.Object > FixedCredentialsProvider

Implements

CredentialsProvider

Constructors

FixedCredentialsProvider()

public FixedCredentialsProvider()

Methods

create(Credentials credentials)

public static FixedCredentialsProvider create(Credentials credentials)

Creates a FixedCredentialsProvider.

Parameter
NameDescription
credentialscom.google.auth.Credentials
Returns
TypeDescription
FixedCredentialsProvider

getCredentials()

public abstract Credentials getCredentials()

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.

Returns
TypeDescription
com.google.auth.Credentials