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 |
quotaProjectId
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, createScoped, createScopedRequired, createWithCustomRetryStrategy, createWithQuotaProject, fromStream, fromStream, getAdditionalHeaders, getApplicationDefault, getApplicationDefault, getQuotaProjectId
addChangeListener, getAccessToken, getAuthenticationType, getFromServiceLoader, getRequestMetadata, getRequestMetadata, getRequestMetadataInternal, hasRequestMetadata, hasRequestMetadataOnly, newInstance, refresh, refreshIfExpired, removeChangeListener
blockingGetToCallback, getRequestMetadata
protected 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
OAuth2Credentials
Throws IllegalStateException if not overridden since direct use of OAuth2Credentials is only for temporary or non-refreshing access tokens.
refreshAccessToken
in class OAuth2Credentials
IOException
public int hashCode()
hashCode
in class OAuth2Credentials
public String toString()
toString
in class OAuth2Credentials
public boolean equals(Object obj)
equals
in class OAuth2Credentials
public CloudShellCredentials.Builder toBuilder()
toBuilder
in class GoogleCredentials
public static CloudShellCredentials.Builder newBuilder()
Copyright © 2023 Google. All rights reserved.