Package com.google.cloud
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:
- Serialized Form
-
-
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
-
-
-
-
Method Detail
-
getInstance
public static NoCredentials getInstance()
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classcom.google.auth.oauth2.OAuth2Credentials
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.google.auth.oauth2.OAuth2Credentials
-
-