Class CloudShellCredentials (1.6.1)
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
Static 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_BYTESbyte[]
Static Methods
create(int authPort)
publicstaticCloudShellCredentialscreate(intauthPort)newBuilder()
publicstaticCloudShellCredentials.BuildernewBuilder()Methods
equals(Object obj)
publicbooleanequals(Objectobj)getAuthPort()
protectedintgetAuthPort()hashCode()
publicinthashCode()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()