Interface OpenIdConnectTokenSelection.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<OpenIdConnectTokenSelection.Builder,
,OpenIdConnectTokenSelection> SdkBuilder<OpenIdConnectTokenSelection.Builder,
,OpenIdConnectTokenSelection> SdkPojo
- Enclosing class:
OpenIdConnectTokenSelection
-
Method Summary
Modifier and TypeMethodDescriptionaccessTokenOnly
(Consumer<OpenIdConnectAccessTokenConfiguration.Builder> accessTokenOnly) The OIDC configuration for processing access tokens.accessTokenOnly
(OpenIdConnectAccessTokenConfiguration accessTokenOnly) The OIDC configuration for processing access tokens.identityTokenOnly
(Consumer<OpenIdConnectIdentityTokenConfiguration.Builder> identityTokenOnly) The OIDC configuration for processing identity (ID) tokens.identityTokenOnly
(OpenIdConnectIdentityTokenConfiguration identityTokenOnly) The OIDC configuration for processing identity (ID) 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
-
accessTokenOnly
OpenIdConnectTokenSelection.Builder accessTokenOnly(OpenIdConnectAccessTokenConfiguration accessTokenOnly) The OIDC configuration for processing access tokens. Contains allowed audience claims, for example
https://auth.example.com
, and the claim that you want to map to the principal, for examplesub
.- Parameters:
accessTokenOnly
- The OIDC configuration for processing access tokens. Contains allowed audience claims, for examplehttps://auth.example.com
, and the claim that you want to map to the principal, for examplesub
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessTokenOnly
default OpenIdConnectTokenSelection.Builder accessTokenOnly(Consumer<OpenIdConnectAccessTokenConfiguration.Builder> accessTokenOnly) The OIDC configuration for processing access tokens. Contains allowed audience claims, for example
This is a convenience method that creates an instance of thehttps://auth.example.com
, and the claim that you want to map to the principal, for examplesub
.OpenIdConnectAccessTokenConfiguration.Builder
avoiding the need to create one manually viaOpenIdConnectAccessTokenConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccessTokenOnly(OpenIdConnectAccessTokenConfiguration)
.- Parameters:
accessTokenOnly
- a consumer that will call methods onOpenIdConnectAccessTokenConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
identityTokenOnly
OpenIdConnectTokenSelection.Builder identityTokenOnly(OpenIdConnectIdentityTokenConfiguration identityTokenOnly) The OIDC configuration for processing identity (ID) tokens. Contains allowed client ID claims, for example
1example23456789
, and the claim that you want to map to the principal, for examplesub
.- Parameters:
identityTokenOnly
- The OIDC configuration for processing identity (ID) tokens. Contains allowed client ID claims, for example1example23456789
, and the claim that you want to map to the principal, for examplesub
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
identityTokenOnly
default OpenIdConnectTokenSelection.Builder identityTokenOnly(Consumer<OpenIdConnectIdentityTokenConfiguration.Builder> identityTokenOnly) The OIDC configuration for processing identity (ID) tokens. Contains allowed client ID claims, for example
This is a convenience method that creates an instance of the1example23456789
, and the claim that you want to map to the principal, for examplesub
.OpenIdConnectIdentityTokenConfiguration.Builder
avoiding the need to create one manually viaOpenIdConnectIdentityTokenConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toidentityTokenOnly(OpenIdConnectIdentityTokenConfiguration)
.- Parameters:
identityTokenOnly
- a consumer that will call methods onOpenIdConnectIdentityTokenConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-