Interface GetResourceOauth2TokenRequest.Builder

  • Method Details

    • workloadIdentityToken

      GetResourceOauth2TokenRequest.Builder workloadIdentityToken(String workloadIdentityToken)

      The identity token of the workload from which you want to retrieve the OAuth2 token.

      Parameters:
      workloadIdentityToken - The identity token of the workload from which you want to retrieve the OAuth2 token.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resourceCredentialProviderName

      GetResourceOauth2TokenRequest.Builder resourceCredentialProviderName(String resourceCredentialProviderName)

      The name of the resource's credential provider.

      Parameters:
      resourceCredentialProviderName - The name of the resource's credential provider.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scopes

      The OAuth scopes being requested.

      Parameters:
      scopes - The OAuth scopes being requested.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scopes

      The OAuth scopes being requested.

      Parameters:
      scopes - The OAuth scopes being requested.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • oauth2Flow

      The type of flow to be performed.

      Parameters:
      oauth2Flow - The type of flow to be performed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • oauth2Flow

      The type of flow to be performed.

      Parameters:
      oauth2Flow - The type of flow to be performed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resourceOauth2ReturnUrl

      GetResourceOauth2TokenRequest.Builder resourceOauth2ReturnUrl(String resourceOauth2ReturnUrl)

      The callback URL to redirect to after the OAuth 2.0 token retrieval is complete. This URL must be one of the provided URLs configured for the workload identity.

      Parameters:
      resourceOauth2ReturnUrl - The callback URL to redirect to after the OAuth 2.0 token retrieval is complete. This URL must be one of the provided URLs configured for the workload identity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • forceAuthentication

      GetResourceOauth2TokenRequest.Builder forceAuthentication(Boolean forceAuthentication)

      Indicates whether to always initiate a new three-legged OAuth (3LO) flow, regardless of any existing session.

      Parameters:
      forceAuthentication - Indicates whether to always initiate a new three-legged OAuth (3LO) flow, regardless of any existing session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • customParameters

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

      A map of custom parameters to include in the authorization request to the resource credential provider. These parameters are in addition to the standard OAuth 2.0 flow parameters, and will not override them.

      Parameters:
      customParameters - A map of custom parameters to include in the authorization request to the resource credential provider. These parameters are in addition to the standard OAuth 2.0 flow parameters, and will not override them.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

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