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 Protobuffers, preceded by
the message length and a new line character.
|
protected static byte[] |
GET_AUTH_TOKEN_REQUEST_BYTES |
| Modifier and Type | Method and Description |
|---|---|
static CloudShellCredentials |
create(int authPort) |
boolean |
equals(Object obj) |
protected int |
getAuthPort() |
int |
hashCode() |
static CloudShellCredentials.Builder |
newBuilder() |
AccessToken |
refreshAccessToken()
Method to refresh the access token according to the specific type of credentials.
|
CloudShellCredentials.Builder |
toBuilder() |
String |
toString() |
create, createDelegated, createScoped, createScoped, createScopedRequired, fromStream, fromStream, getApplicationDefault, getApplicationDefaultaddChangeListener, getAccessToken, getAdditionalHeaders, getAuthenticationType, getFromServiceLoader, getRequestMetadata, getRequestMetadata, getRequestMetadataInternal, hasRequestMetadata, hasRequestMetadataOnly, newInstance, refresh, refreshIfExpired, removeChangeListenerblockingGetToCallback, getRequestMetadataprotected static final String GET_AUTH_TOKEN_REQUEST
protected static final byte[] GET_AUTH_TOKEN_REQUEST_BYTES
public static CloudShellCredentials create(int authPort)
protected int getAuthPort()
public AccessToken refreshAccessToken() throws IOException
OAuth2CredentialsThrows IllegalStateException if not overridden since direct use of OAuth2Credentials is only for temporary or non-refreshing access tokens.
refreshAccessToken in class OAuth2CredentialsIOExceptionpublic 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 © 2021 Google. All rights reserved.