Interface SubjectTokenSourceConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SubjectTokenSourceConfiguration.Builder,,SubjectTokenSourceConfiguration> SdkBuilder<SubjectTokenSourceConfiguration.Builder,,SubjectTokenSourceConfiguration> SdkPojo
- Enclosing class:
SubjectTokenSourceConfiguration
-
Method Summary
Modifier and TypeMethodDescriptioncredentialProvider(String credentialProvider) Use an end-user token stored by the credential provider named here as the subject.credentialProviderSelf(Consumer<CredentialBrokerSelfSubjectTokenSource.Builder> credentialProviderSelf) Use this provider's own stored end-user token as the subject, so that the same provider both obtains the user's token and exchanges it.credentialProviderSelf(CredentialBrokerSelfSubjectTokenSource credentialProviderSelf) Use this provider's own stored end-user token as the subject, so that the same provider both obtains the user's token and exchanges it.iamIdentityCenter(Consumer<Unit.Builder> iamIdentityCenter) Use the identity in the caller's IAM Identity Center session as the subject.iamIdentityCenter(Unit iamIdentityCenter) Use the identity in the caller's IAM Identity Center session as the subject.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
-
iamIdentityCenter
Use the identity in the caller's IAM Identity Center session as the subject.
- Parameters:
iamIdentityCenter- Use the identity in the caller's IAM Identity Center session as the subject.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamIdentityCenter
default SubjectTokenSourceConfiguration.Builder iamIdentityCenter(Consumer<Unit.Builder> iamIdentityCenter) Use the identity in the caller's IAM Identity Center session as the subject.
This is a convenience method that creates an instance of theUnit.Builderavoiding the need to create one manually viaUnit.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toiamIdentityCenter(Unit).- Parameters:
iamIdentityCenter- a consumer that will call methods onUnit.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
credentialProvider
Use an end-user token stored by the credential provider named here as the subject.
- Parameters:
credentialProvider- Use an end-user token stored by the credential provider named here as the subject.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
credentialProviderSelf
SubjectTokenSourceConfiguration.Builder credentialProviderSelf(CredentialBrokerSelfSubjectTokenSource credentialProviderSelf) Use this provider's own stored end-user token as the subject, so that the same provider both obtains the user's token and exchanges it. Requires the provider to allow the
AUTHORIZATION_CODEgrant.- Parameters:
credentialProviderSelf- Use this provider's own stored end-user token as the subject, so that the same provider both obtains the user's token and exchanges it. Requires the provider to allow theAUTHORIZATION_CODEgrant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
credentialProviderSelf
default SubjectTokenSourceConfiguration.Builder credentialProviderSelf(Consumer<CredentialBrokerSelfSubjectTokenSource.Builder> credentialProviderSelf) Use this provider's own stored end-user token as the subject, so that the same provider both obtains the user's token and exchanges it. Requires the provider to allow the
This is a convenience method that creates an instance of theAUTHORIZATION_CODEgrant.CredentialBrokerSelfSubjectTokenSource.Builderavoiding the need to create one manually viaCredentialBrokerSelfSubjectTokenSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocredentialProviderSelf(CredentialBrokerSelfSubjectTokenSource).- Parameters:
credentialProviderSelf- a consumer that will call methods onCredentialBrokerSelfSubjectTokenSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-