Class CloudShellCredentials

All Implemented Interfaces:
QuotaProjectIdProvider, Serializable

public class CloudShellCredentials extends GoogleCredentials
OAuth2 credentials representing the built-in service account for Google Cloud Shell.
See Also:
  • Field Details

    • GET_AUTH_TOKEN_REQUEST

      protected static final 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. However, the request message has no content, so a token request consists of an empty JsPb, and its 2 character length prefix.
      See Also:
    • GET_AUTH_TOKEN_REQUEST_BYTES

      protected static final byte[] GET_AUTH_TOKEN_REQUEST_BYTES
  • Method Details