Class NoCredentialsProvider (2.42.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
TypeDescription
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
TypeDescription
com.google.auth.Credentials