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 lengeth and a
new line character.
|
| Constructor and Description |
|---|
CloudShellCredentials(int authPort) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getAuthPort() |
AccessToken |
refreshAccessToken()
Method to refresh the access token according to the specific type of credentials.
|
createScoped, createScopedRequired, fromStream, fromStream, getApplicationDefault, getApplicationDefaultaddChangeListener, getAccessToken, getAuthenticationType, getRequestMetadata, hasRequestMetadata, hasRequestMetadataOnly, refreshgetRequestMetadataprotected static final String GET_AUTH_TOKEN_REQUEST
protected int getAuthPort()
public AccessToken refreshAccessToken() throws IOException
OAuth2CredentialsrefreshAccessToken in class OAuth2CredentialsIOException - from derived implementationsCopyright © 2015 Google. All rights reserved.