public class CloudShellCredential extends GoogleCredential
Deprecated. Please use
google-auth-library for handling authentication and authorization from Cloud Shell.
OAuth2 credentials representing the built-in service account for Google Cloud Shell.
Inherited Members
com.google.api.client.auth.oauth2.Credential.getAccessToken()
com.google.api.client.auth.oauth2.Credential.getClientAuthentication()
com.google.api.client.auth.oauth2.Credential.getClock()
com.google.api.client.auth.oauth2.Credential.getExpirationTimeMilliseconds()
com.google.api.client.auth.oauth2.Credential.getExpiresInSeconds()
com.google.api.client.auth.oauth2.Credential.getJsonFactory()
com.google.api.client.auth.oauth2.Credential.getMethod()
com.google.api.client.auth.oauth2.Credential.getRefreshListeners()
com.google.api.client.auth.oauth2.Credential.getRefreshToken()
com.google.api.client.auth.oauth2.Credential.getRequestInitializer()
com.google.api.client.auth.oauth2.Credential.getTokenServerEncodedUrl()
com.google.api.client.auth.oauth2.Credential.getTransport()
com.google.api.client.auth.oauth2.Credential.handleResponse(com.google.api.client.http.HttpRequest,com.google.api.client.http.HttpResponse,boolean)
com.google.api.client.auth.oauth2.Credential.initialize(com.google.api.client.http.HttpRequest)
com.google.api.client.auth.oauth2.Credential.intercept(com.google.api.client.http.HttpRequest)
com.google.api.client.auth.oauth2.Credential.refreshToken()
Static Fields
GET_AUTH_TOKEN_REQUEST (deprecated)
protected static final 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. However, the request message has no content, so a
token request consists of an empty JsPb, and its 2 character lenth prefix.
Field Value |
---|
Type | Description |
String | |
Constructors
CloudShellCredential(int authPort, JsonFactory jsonFactory) (deprecated)
public CloudShellCredential(int authPort, JsonFactory jsonFactory)
Parameters |
---|
Name | Description |
authPort | int
|
jsonFactory | com.google.api.client.json.JsonFactory
|
Methods
executeRefreshToken() (deprecated)
protected TokenResponse executeRefreshToken()
Returns |
---|
Type | Description |
com.google.api.client.auth.oauth2.TokenResponse | |
Overrides
getAuthPort() (deprecated)
protected int getAuthPort()
Returns |
---|
Type | Description |
int | |