Class EmulatorCredentials
- java.lang.Object
-
- com.google.auth.Credentials
-
- com.google.auth.oauth2.OAuth2Credentials
-
- org.apache.flink.streaming.connectors.gcp.pubsub.emulator.EmulatorCredentials
-
- All Implemented Interfaces:
Serializable
public final class EmulatorCredentials extends com.google.auth.oauth2.OAuth2CredentialsA 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static EmulatorCredentialsgetInstance()inthashCode()com.google.auth.oauth2.AccessTokenrefreshAccessToken()-
Methods inherited from class com.google.auth.oauth2.OAuth2Credentials
addChangeListener, create, getAccessToken, getAuthenticationType, getFromServiceLoader, getRequestMetadata, getRequestMetadata, getRequestMetadataInternal, hasRequestMetadata, hasRequestMetadataOnly, newBuilder, newInstance, refresh, refreshIfExpired, removeChangeListener, toBuilder, toString
-
-
-
-
Method Detail
-
getInstance
public static EmulatorCredentials getInstance()
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classcom.google.auth.oauth2.OAuth2Credentials
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.google.auth.oauth2.OAuth2Credentials
-
refreshAccessToken
public com.google.auth.oauth2.AccessToken refreshAccessToken()
- Overrides:
refreshAccessTokenin classcom.google.auth.oauth2.OAuth2Credentials
-
-