Interface StartOAuthSessionRequest.Builder

  • Method Details

    • credentialProviderArn

      StartOAuthSessionRequest.Builder credentialProviderArn(String credentialProviderArn)

      Amazon Resource Name of the credential provider the user is granting consent for.

      Parameters:
      credentialProviderArn - Amazon Resource Name of the credential provider the user is granting consent for.
      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.
    • 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.
    • sessionBindingUrl

      StartOAuthSessionRequest.Builder sessionBindingUrl(String sessionBindingUrl)

      The URL the end user's browser is returned to once they have responded to the consent prompt. Must match one of the session-binding URLs allowed on the provider.

      Parameters:
      sessionBindingUrl - The URL the end user's browser is returned to once they have responded to the consent prompt. Must match one of the session-binding URLs allowed on the provider.
      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

      StartOAuthSessionRequest.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

      StartOAuthSessionRequest.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

      StartOAuthSessionRequest.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.
    • customState

      StartOAuthSessionRequest.Builder customState(String customState)

      An opaque string of your own that is sent back to your session-binding URL unchanged. Use it to tie the response to the request you issued, so your handler can reject a response it did not initiate.

      Parameters:
      customState - An opaque string of your own that is sent back to your session-binding URL unchanged. Use it to tie the response to the request you issued, so your handler can reject a response it did not initiate.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      StartOAuthSessionRequest.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.