Interface GetOAuthTokenRequest.Builder

  • Method Details

    • credentialProviderArn

      GetOAuthTokenRequest.Builder credentialProviderArn(String credentialProviderArn)

      Amazon Resource Name of the credential provider to obtain the token from. The provider must be an OAuth provider and must be READY.

      Parameters:
      credentialProviderArn - Amazon Resource Name of the credential provider to obtain the token from. The provider must be an OAuth provider and must be READY.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • grantType

      GetOAuthTokenRequest.Builder grantType(String grantType)

      How the token is obtained. Must be one of the grant types the provider allows; a grant the provider does not allow is rejected.

      Parameters:
      grantType - How the token is obtained. Must be one of the grant types the provider allows; a grant the provider does not allow is rejected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • grantType

      How the token is obtained. Must be one of the grant types the provider allows; a grant the provider does not allow is rejected.

      Parameters:
      grantType - How the token is obtained. Must be one of the grant types the provider allows; a grant the provider does not allow is rejected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scopes

      The OAuth scopes to request from the authorization server.

      Parameters:
      scopes - The OAuth scopes to request from the authorization server.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scopes

      The OAuth scopes to request from the authorization server.

      Parameters:
      scopes - The OAuth scopes to request from the authorization server.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resources

      Resource indicators (RFC 8707) naming the APIs this token is for. Omit unless the authorization server requires them.

      Parameters:
      resources - Resource indicators (RFC 8707) naming the APIs this token is for. Omit unless the authorization server requires them.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resources

      GetOAuthTokenRequest.Builder resources(String... resources)

      Resource indicators (RFC 8707) naming the APIs this token is for. Omit unless the authorization server requires them.

      Parameters:
      resources - Resource indicators (RFC 8707) naming the APIs this token is for. Omit unless the authorization server requires them.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • audiences

      Audience values (RFC 8693) naming the intended recipients of this token. Omit unless the authorization server requires them.

      Parameters:
      audiences - Audience values (RFC 8693) naming the intended recipients of this token. Omit unless the authorization server requires them.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • audiences

      GetOAuthTokenRequest.Builder audiences(String... audiences)

      Audience values (RFC 8693) naming the intended recipients of this token. Omit unless the authorization server requires them.

      Parameters:
      audiences - Audience values (RFC 8693) naming the intended recipients of this token. Omit unless the authorization server requires them.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • customParameters

      GetOAuthTokenRequest.Builder customParameters(Map<String,String> customParameters)

      Extra parameters to include in the request to the authorization server, for vendor extensions. Added to the standard OAuth parameters; they never override them.

      Parameters:
      customParameters - Extra parameters to include in the request to the authorization server, for vendor extensions. Added to the standard OAuth parameters; they never override them.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • forceAuthentication

      GetOAuthTokenRequest.Builder forceAuthentication(Boolean forceAuthentication)

      Request a new token from the authorization server even when the broker already holds a valid one for this provider. Defaults to false, which returns the held token when one is available.

      Parameters:
      forceAuthentication - Request a new token from the authorization server even when the broker already holds a valid one for this provider. Defaults to false, which returns the held token when one is available.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sessionUri

      GetOAuthTokenRequest.Builder sessionUri(String sessionUri)

      Return the token obtained for a consent session that a user has already completed. Supply the handle returned when the session was started.

      Parameters:
      sessionUri - Return the token obtained for a consent session that a user has already completed. Supply the handle returned when the session was started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      GetOAuthTokenRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.