Interface OAuthConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<OAuthConfig.Builder,
,OAuthConfig> SdkBuilder<OAuthConfig.Builder,
,OAuthConfig> SdkPojo
- Enclosing class:
OAuthConfig
-
Method Summary
Modifier and TypeMethodDescriptionThe authorization URL for the OAuth service, where users are directed to authenticate and authorize access.oAuthCompleteRedirectUrl
(String oAuthCompleteRedirectUrl) The URL where users are redirected after completing the OAuth authorization process.default OAuthConfig.Builder
proactiveRefreshTokenRenewal
(Consumer<ProactiveRefreshTokenRenewal.Builder> proactiveRefreshTokenRenewal) Configuration for proactively refreshing OAuth tokens before they expire.proactiveRefreshTokenRenewal
(ProactiveRefreshTokenRenewal proactiveRefreshTokenRenewal) Configuration for proactively refreshing OAuth tokens before they expire.The OAuth scopes requested during authorization, which define the permissions granted to the application.tokenEndpointAuthenticationScheme
(String tokenEndpointAuthenticationScheme) The authentication scheme used when requesting tokens from the token endpoint.tokenEndpointAuthenticationScheme
(TokenEndpointAuthenticationScheme tokenEndpointAuthenticationScheme) The authentication scheme used when requesting tokens from the token endpoint.The token URL for the OAuth service, where authorization codes are exchanged for access tokens.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
authUrl
The authorization URL for the OAuth service, where users are directed to authenticate and authorize access.
- Parameters:
authUrl
- The authorization URL for the OAuth service, where users are directed to authenticate and authorize access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenUrl
The token URL for the OAuth service, where authorization codes are exchanged for access tokens.
- Parameters:
tokenUrl
- The token URL for the OAuth service, where authorization codes are exchanged for access tokens.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scope
The OAuth scopes requested during authorization, which define the permissions granted to the application.
- Parameters:
scope
- The OAuth scopes requested during authorization, which define the permissions granted to the application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenEndpointAuthenticationScheme
The authentication scheme used when requesting tokens from the token endpoint.
- Parameters:
tokenEndpointAuthenticationScheme
- The authentication scheme used when requesting tokens from the token endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tokenEndpointAuthenticationScheme
OAuthConfig.Builder tokenEndpointAuthenticationScheme(TokenEndpointAuthenticationScheme tokenEndpointAuthenticationScheme) The authentication scheme used when requesting tokens from the token endpoint.
- Parameters:
tokenEndpointAuthenticationScheme
- The authentication scheme used when requesting tokens from the token endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
oAuthCompleteRedirectUrl
The URL where users are redirected after completing the OAuth authorization process.
- Parameters:
oAuthCompleteRedirectUrl
- The URL where users are redirected after completing the OAuth authorization process.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
proactiveRefreshTokenRenewal
OAuthConfig.Builder proactiveRefreshTokenRenewal(ProactiveRefreshTokenRenewal proactiveRefreshTokenRenewal) Configuration for proactively refreshing OAuth tokens before they expire.
- Parameters:
proactiveRefreshTokenRenewal
- Configuration for proactively refreshing OAuth tokens before they expire.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
proactiveRefreshTokenRenewal
default OAuthConfig.Builder proactiveRefreshTokenRenewal(Consumer<ProactiveRefreshTokenRenewal.Builder> proactiveRefreshTokenRenewal) Configuration for proactively refreshing OAuth tokens before they expire.
This is a convenience method that creates an instance of theProactiveRefreshTokenRenewal.Builder
avoiding the need to create one manually viaProactiveRefreshTokenRenewal.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toproactiveRefreshTokenRenewal(ProactiveRefreshTokenRenewal)
.- Parameters:
proactiveRefreshTokenRenewal
- a consumer that will call methods onProactiveRefreshTokenRenewal.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-