Class NoCredentialsProvider (2.7.1)

public final class NoCredentialsProvider implements CredentialsProvider

NoCredentialsProvider is a CredentialsProvider which always returns null.

Inheritance

java.lang.Object > NoCredentialsProvider

Implements

CredentialsProvider

Constructors

NoCredentialsProvider()

public NoCredentialsProvider()

Methods

create()

public static NoCredentialsProvider create()
Returns
TypeDescription
NoCredentialsProvider

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