Interface PrivateKeyJwtConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PrivateKeyJwtConfig.Builder,,PrivateKeyJwtConfig> SdkBuilder<PrivateKeyJwtConfig.Builder,,PrivateKeyJwtConfig> SdkPojo
- Enclosing class:
PrivateKeyJwtConfig
-
Method Summary
Modifier and TypeMethodDescriptionadditionalHeaderClaims(Map<String, String> additionalHeaderClaims) A map of additional claims to include in the JWT client assertion header.additionalPayloadClaims(Map<String, String> additionalPayloadClaims) A map of additional claims to include in the JWT client assertion payload.default PrivateKeyJwtConfig.BuilderprivateKeySource(Consumer<PrivateKeySource.Builder> privateKeySource) The private key source for the JWT client assertion.privateKeySource(PrivateKeySource privateKeySource) The private key source for the JWT client assertion.signingAlgorithm(String signingAlgorithm) The algorithm used to sign the JWT client assertion.signingAlgorithm(SigningAlgorithm signingAlgorithm) The algorithm used to sign the JWT client assertion.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
privateKeySource
The private key source for the JWT client assertion.
- Parameters:
privateKeySource- The private key source for the JWT client assertion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateKeySource
default PrivateKeyJwtConfig.Builder privateKeySource(Consumer<PrivateKeySource.Builder> privateKeySource) The private key source for the JWT client assertion.
This is a convenience method that creates an instance of thePrivateKeySource.Builderavoiding the need to create one manually viaPrivateKeySource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprivateKeySource(PrivateKeySource).- Parameters:
privateKeySource- a consumer that will call methods onPrivateKeySource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
signingAlgorithm
The algorithm used to sign the JWT client assertion. Valid values are
RS256,PS256, andES256.- Parameters:
signingAlgorithm- The algorithm used to sign the JWT client assertion. Valid values areRS256,PS256, andES256.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
signingAlgorithm
The algorithm used to sign the JWT client assertion. Valid values are
RS256,PS256, andES256.- Parameters:
signingAlgorithm- The algorithm used to sign the JWT client assertion. Valid values areRS256,PS256, andES256.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
additionalHeaderClaims
A map of additional claims to include in the JWT client assertion header. Standard header claims such as
algandtypcannot be added.- Parameters:
additionalHeaderClaims- A map of additional claims to include in the JWT client assertion header. Standard header claims such asalgandtypcannot be added.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalPayloadClaims
A map of additional claims to include in the JWT client assertion payload. Payload claims generated by the service, such as
iss,sub,jti, andexp, cannot be added.- Parameters:
additionalPayloadClaims- A map of additional claims to include in the JWT client assertion payload. Payload claims generated by the service, such asiss,sub,jti, andexp, cannot be added.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-