Class NoCredentials

  • All Implemented Interfaces:
    Serializable

    public class NoCredentials
    extends com.google.auth.oauth2.OAuth2Credentials
    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.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.auth.oauth2.OAuth2Credentials

        com.google.auth.oauth2.OAuth2Credentials.Builder, com.google.auth.oauth2.OAuth2Credentials.CredentialsChangedListener
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)  
      static NoCredentials getInstance()  
      int hashCode()  
      • Methods inherited from class com.google.auth.oauth2.OAuth2Credentials

        addChangeListener, create, getAccessToken, getAdditionalHeaders, getAuthenticationType, getFromServiceLoader, getRequestMetadata, getRequestMetadata, getRequestMetadataInternal, hasRequestMetadata, hasRequestMetadataOnly, newBuilder, newInstance, refresh, refreshAccessToken, refreshIfExpired, removeChangeListener, toBuilder, toString
      • Methods inherited from class com.google.auth.Credentials

        blockingGetToCallback, getRequestMetadata
    • Method Detail

      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class com.google.auth.oauth2.OAuth2Credentials
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.google.auth.oauth2.OAuth2Credentials