Send feedback
Class CloudShellCredential (2.5.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.5.1 keyboard_arrow_down
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, preceded 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 length 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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-19 UTC."],[],[]]