Interface OpenIdConnectTokenSelection.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<OpenIdConnectTokenSelection.Builder,OpenIdConnectTokenSelection>,SdkBuilder<OpenIdConnectTokenSelection.Builder,OpenIdConnectTokenSelection>,SdkPojo
- Enclosing class:
- OpenIdConnectTokenSelection
public static interface OpenIdConnectTokenSelection.Builder extends SdkPojo, CopyableBuilder<OpenIdConnectTokenSelection.Builder,OpenIdConnectTokenSelection>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default OpenIdConnectTokenSelection.BuilderaccessTokenOnly(Consumer<OpenIdConnectAccessTokenConfiguration.Builder> accessTokenOnly)The OIDC configuration for processing access tokens.OpenIdConnectTokenSelection.BuilderaccessTokenOnly(OpenIdConnectAccessTokenConfiguration accessTokenOnly)The OIDC configuration for processing access tokens.default OpenIdConnectTokenSelection.BuilderidentityTokenOnly(Consumer<OpenIdConnectIdentityTokenConfiguration.Builder> identityTokenOnly)The OIDC configuration for processing identity (ID) tokens.OpenIdConnectTokenSelection.BuilderidentityTokenOnly(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, sdkFields
-
-
-
-
Method Detail
-
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.Builderavoiding the need to create one manually viaOpenIdConnectAccessTokenConfiguration.builder().When the
Consumercompletes,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:
accessTokenOnly(OpenIdConnectAccessTokenConfiguration)
-
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.Builderavoiding the need to create one manually viaOpenIdConnectIdentityTokenConfiguration.builder().When the
Consumercompletes,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:
identityTokenOnly(OpenIdConnectIdentityTokenConfiguration)
-
-