public class CloudShellCredentials extends GoogleCredentials
OAuth2Credentials.CredentialsChangedListener| Modifier and Type | Field and Description |
|---|---|
protected static String |
GET_AUTH_TOKEN_REQUEST
The Cloud Shell back authorization channel uses serialized
Javascript Protobufers, preceeded by the message length and a
new line character.
|
| Constructor and Description |
|---|
CloudShellCredentials(int authPort) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
protected int |
getAuthPort() |
int |
hashCode() |
AccessToken |
refreshAccessToken()
Method to refresh the access token according to the specific type of credentials.
|
String |
toString() |
createDelegated, createScoped, createScopedRequired, fromStream, fromStream, getApplicationDefault, getApplicationDefaultaddChangeListener, getAccessToken, getAuthenticationType, getFromServiceLoader, getRequestMetadata, getRequestMetadata, hasRequestMetadata, hasRequestMetadataOnly, newInstance, refresh, toStringHelperblockingGetToCallback, getRequestMetadataprotected static final String GET_AUTH_TOKEN_REQUEST
protected int getAuthPort()
public AccessToken refreshAccessToken() throws IOException
OAuth2CredentialsrefreshAccessToken in class OAuth2CredentialsIOException - from derived implementationspublic int hashCode()
hashCode in class OAuth2Credentialspublic String toString()
toString in class OAuth2Credentialspublic boolean equals(Object obj)
equals in class OAuth2CredentialsCopyright © 2017 Google. All rights reserved.