Class SelectedAuthScheme<T extends Identity>

java.lang.Object
software.amazon.awssdk.core.SelectedAuthScheme<T>

@SdkProtectedApi public final class SelectedAuthScheme<T extends Identity> extends Object

A container for the identity resolver, signer and auth option that we selected for use with this service call attempt.

The Hierarchy

IDENTITY_PROVIDERS (IdentityProviders)
    └── contains multiple IdentityProvider<T> instances
            e.g., IdentityProvider<AwsCredentialsIdentity> for AWS credentials
            e.g., IdentityProvider<TokenIdentity> for bearer tokens

AUTH_SCHEMES (Map<String, AuthScheme<?>>)
    └── each AuthScheme knows:
            - which IdentityProvider type it needs
            - which HttpSigner to use

SELECTED_AUTH_SCHEME (SelectedAuthScheme<T>)
    └── the chosen auth scheme, containing:
            - identity: CompletableFuture<T>  ← the resolved identity!
            - signer: HttpSigner<T>
            - authSchemeOption: AuthSchemeOption