Class NoCredentials (2.6.1)

publicclassNoCredentialsextendsOAuth2Credentials

A placeholder for credentials to signify that requests sent to the server should not be authenticated. This is typically useful when using local service emulators.

Inheritance

Object >com.google.auth.Credentials >com.google.auth.oauth2.OAuth2Credentials >NoCredentials

Inherited Members

com.google.auth.Credentials.blockingGetToCallback(java.net.URI,com.google.auth.RequestMetadataCallback)
com.google.auth.Credentials.getRequestMetadata()
com.google.auth.oauth2.OAuth2Credentials.<T>getFromServiceLoader(java.lang.Class<? extends T>,T)
com.google.auth.oauth2.OAuth2Credentials.<T>newInstance(java.lang.String)
com.google.auth.oauth2.OAuth2Credentials.addChangeListener(com.google.auth.oauth2.OAuth2Credentials.CredentialsChangedListener)
com.google.auth.oauth2.OAuth2Credentials.create(com.google.auth.oauth2.AccessToken)
com.google.auth.oauth2.OAuth2Credentials.equals(java.lang.Object)
com.google.auth.oauth2.OAuth2Credentials.getAccessToken()
com.google.auth.oauth2.OAuth2Credentials.getAdditionalHeaders()
com.google.auth.oauth2.OAuth2Credentials.getAuthenticationType()
com.google.auth.oauth2.OAuth2Credentials.getRequestMetadata(java.net.URI)
com.google.auth.oauth2.OAuth2Credentials.getRequestMetadata(java.net.URI,java.util.concurrent.Executor,com.google.auth.RequestMetadataCallback)
com.google.auth.oauth2.OAuth2Credentials.getRequestMetadataInternal()
com.google.auth.oauth2.OAuth2Credentials.hasRequestMetadata()
com.google.auth.oauth2.OAuth2Credentials.hasRequestMetadataOnly()
com.google.auth.oauth2.OAuth2Credentials.hashCode()
com.google.auth.oauth2.OAuth2Credentials.newBuilder()
com.google.auth.oauth2.OAuth2Credentials.refresh()
com.google.auth.oauth2.OAuth2Credentials.refreshAccessToken()
com.google.auth.oauth2.OAuth2Credentials.refreshIfExpired()
com.google.auth.oauth2.OAuth2Credentials.removeChangeListener(com.google.auth.oauth2.OAuth2Credentials.CredentialsChangedListener)
com.google.auth.oauth2.OAuth2Credentials.toBuilder()
com.google.auth.oauth2.OAuth2Credentials.toString()

Static Methods

getInstance()

publicstaticNoCredentialsgetInstance()
Returns
TypeDescription
NoCredentials

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides
com.google.auth.oauth2.OAuth2Credentials.equals(java.lang.Object)

hashCode()

publicinthashCode()
Returns
TypeDescription
int
Overrides
com.google.auth.oauth2.OAuth2Credentials.hashCode()

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-31 UTC.