Class CloudShellCredentials (1.3.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicclass CloudShellCredentialsextendsGoogleCredentialsOAuth2 credentials representing the built-in service account for Google Cloud Shell.
Inherited Members
Fields
GET_AUTH_TOKEN_REQUEST
protectedstaticfinalStringGET_AUTH_TOKEN_REQUESTThe Cloud Shell back authorization channel uses serialized Javascript Protobuffers, preceded by the message length 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.
GET_AUTH_TOKEN_REQUEST_BYTES
protectedstaticfinalbyte[]GET_AUTH_TOKEN_REQUEST_BYTESMethods
create(int authPort)
publicstaticCloudShellCredentialscreate(intauthPort)equals(Object obj)
publicbooleanequals(Objectobj)getAuthPort()
protectedintgetAuthPort()hashCode()
publicinthashCode()newBuilder()
publicstaticCloudShellCredentials.BuildernewBuilder()refreshAccessToken()
publicAccessTokenrefreshAccessToken()Method to refresh the access token according to the specific type of credentials.
Throws IllegalStateException if not overridden since direct use of OAuth2Credentials is only for temporary or non-refreshing access tokens.
toBuilder()
publicCloudShellCredentials.BuildertoBuilder()toString()
publicStringtoString()