Class NoCredentialsProvider (2.49.0)

public final class NoCredentialsProvider implements CredentialsProvider

NoCredentialsProvider is a CredentialsProvider which always returns null.

Inheritance

java.lang.Object > NoCredentialsProvider

Implements

CredentialsProvider

Static Methods

create()

public static NoCredentialsProvider create()
Returns
Type Description
NoCredentialsProvider

Constructors

NoCredentialsProvider()

public NoCredentialsProvider()

Methods

getCredentials()

public 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