Class FixedCredentialsProvider (2.37.0)

public abstract class FixedCredentialsProvider implements CredentialsProvider

FixedCredentialsProvider is a CredentialsProvider which always provides the same credentials.

Inheritance

java.lang.Object > FixedCredentialsProvider

Implements

CredentialsProvider

Static Methods

create(Credentials credentials)

public static FixedCredentialsProvider create(Credentials credentials)

Creates a FixedCredentialsProvider.

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

Constructors

FixedCredentialsProvider()

public FixedCredentialsProvider()

Methods

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