Interface OAuthCredentialProvider.Builder

  • Method Details

    • providerArn

      OAuthCredentialProvider.Builder providerArn(String providerArn)

      The ARN of the OAuth 2.0 credential provider in AgentCore Identity.

      Parameters:
      providerArn - The ARN of the OAuth 2.0 credential provider in AgentCore Identity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scopes

      The OAuth 2.0 scopes to request when obtaining an access token.

      Parameters:
      scopes - The OAuth 2.0 scopes to request when obtaining an access token.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scopes

      The OAuth 2.0 scopes to request when obtaining an access token.

      Parameters:
      scopes - The OAuth 2.0 scopes to request when obtaining an access token.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • customParameters

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

      Additional custom parameters to include in the OAuth 2.0 token request.

      Parameters:
      customParameters - Additional custom parameters to include in the OAuth 2.0 token request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • grantType

      The OAuth 2.0 grant type to use for authentication.

      Parameters:
      grantType - The OAuth 2.0 grant type to use for authentication.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • grantType

      The OAuth 2.0 grant type to use for authentication.

      Parameters:
      grantType - The OAuth 2.0 grant type to use for authentication.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • defaultReturnUrl

      OAuthCredentialProvider.Builder defaultReturnUrl(String defaultReturnUrl)

      The default return URL for the OAuth 2.0 authorization flow.

      Parameters:
      defaultReturnUrl - The default return URL for the OAuth 2.0 authorization flow.
      Returns:
      Returns a reference to this object so that method calls can be chained together.