Class NoCredentials

java.lang.Object
com.google.auth.Credentials
com.google.auth.oauth2.OAuth2Credentials
com.google.cloud.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:
  • 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
  • Field Summary

    Fields inherited from class com.google.auth.Credentials

    GOOGLE_DEFAULT_UNIVERSE
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
    int
     

    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, getMetricsCredentialType, getRequestMetadata, getUniverseDomain

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • getInstance

      public static NoCredentials getInstance()
    • 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