Class EmulatorCredentials

  • All Implemented Interfaces:
    Serializable

    public final class EmulatorCredentials
    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. NOTE: The Google provided NoCredentials and NoCredentialsProvider do not behave as expected See https://github.com/googleapis/gax-java/issues/1148
    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 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
      • refreshAccessToken

        public com.google.auth.oauth2.AccessToken refreshAccessToken()
        Overrides:
        refreshAccessToken in class com.google.auth.oauth2.OAuth2Credentials