Class StsRequestHandler

java.lang.Object
com.google.auth.oauth2.StsRequestHandler

final class StsRequestHandler extends Object
Implements the OAuth 2.0 token exchange based on https://tools.ietf.org/html/rfc8693.
  • Field Details

    • TOKEN_EXCHANGE_GRANT_TYPE

      private static final String TOKEN_EXCHANGE_GRANT_TYPE
      See Also:
    • PARSE_ERROR_PREFIX

      private static final String PARSE_ERROR_PREFIX
      See Also:
    • tokenExchangeEndpoint

      private final String tokenExchangeEndpoint
    • request

      private final StsTokenExchangeRequest request
    • httpRequestFactory

      private final com.google.api.client.http.HttpRequestFactory httpRequestFactory
    • headers

      @Nullable private final com.google.api.client.http.HttpHeaders headers
    • internalOptions

      @Nullable private final String internalOptions
  • Constructor Details

    • StsRequestHandler

      private StsRequestHandler(String tokenExchangeEndpoint, StsTokenExchangeRequest request, com.google.api.client.http.HttpRequestFactory httpRequestFactory, @Nullable com.google.api.client.http.HttpHeaders headers, @Nullable String internalOptions)
      Internal constructor.
      Parameters:
      tokenExchangeEndpoint - the token exchange endpoint
      request - the token exchange request
      headers - optional additional headers to pass along the request
      internalOptions - optional GCP specific STS options
  • Method Details