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.
Use
create(int) instead. This constructor will either be deleted or
made private in a later version. |
| Modifier and Type | Method and Description |
|---|---|
static CloudShellCredentials |
create(int authPort) |
boolean |
equals(Object obj) |
protected int |
getAuthPort() |
int |
hashCode() |
static CloudShellCredentials.Builder |
newBuilder() |
static CloudShellCredentials |
of(int authPort)
Deprecated.
Use
create(int) instead. This method will be deleted in a later version. |
AccessToken |
refreshAccessToken()
Method to refresh the access token according to the specific type of credentials.
|
CloudShellCredentials.Builder |
toBuilder() |
String |
toString() |
create, createDelegated, createScoped, createScopedRequired, fromStream, fromStream, getApplicationDefault, getApplicationDefault, ofaddChangeListener, getAccessToken, getAuthenticationType, getFromServiceLoader, getRequestMetadata, getRequestMetadata, getRequestMetadataInternal, hasRequestMetadata, hasRequestMetadataOnly, newInstance, refresh, removeChangeListenerblockingGetToCallback, getRequestMetadataprotected static final String GET_AUTH_TOKEN_REQUEST
@Deprecated public CloudShellCredentials(int authPort)
create(int) instead. This constructor will either be deleted or
made private in a later version.@Deprecated public static CloudShellCredentials of(int authPort)
create(int) instead. This method will be deleted in a later version.public static CloudShellCredentials create(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.