public class CloudShellCredentials extends GoogleCredentials
| Modifier and Type | Class and Description |
|---|---|
static class |
CloudShellCredentials.Builder |
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)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
protected int |
getAuthPort() |
int |
hashCode() |
static CloudShellCredentials.Builder |
newBuilder() |
static CloudShellCredentials |
of(int authPort) |
AccessToken |
refreshAccessToken()
Method to refresh the access token according to the specific type of credentials.
|
CloudShellCredentials.Builder |
toBuilder() |
String |
toString() |
createDelegated, createScoped, createScopedRequired, fromStream, fromStream, getApplicationDefault, getApplicationDefault, ofaddChangeListener, getAccessToken, getAuthenticationType, getFromServiceLoader, getRequestMetadata, getRequestMetadata, hasRequestMetadata, hasRequestMetadataOnly, newInstance, refresh, toStringHelperblockingGetToCallback, getRequestMetadataprotected static final String GET_AUTH_TOKEN_REQUEST
@Deprecated public CloudShellCredentials(int authPort)
public static CloudShellCredentials of(int authPort)
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 OAuth2Credentialspublic CloudShellCredentials.Builder toBuilder()
toBuilder in class GoogleCredentialspublic static CloudShellCredentials.Builder newBuilder()
Copyright © 2017 Google. All rights reserved.