Class FixedCredentialsProvider (2.50.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
Name Description
credentials com.google.auth.Credentials
Returns
Type Description
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
Type Description
com.google.auth.Credentials