Interface SdkTokenProvider
- All Superinterfaces:
- IdentityProvider<TokenIdentity>
- All Known Implementing Classes:
- DefaultAwsTokenProvider,- LazyTokenProvider,- ProfileTokenProvider,- SdkTokenProviderChain,- SsoAccessTokenProvider,- SsoOidcTokenProvider,- StaticTokenProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@SdkPublicApi
public interface SdkTokenProvider
extends IdentityProvider<TokenIdentity>
Interface for loading 
SdkToken that are used for authentication.- 
Method SummaryModifier and TypeMethodDescriptiondefault Class<TokenIdentity> Retrieve the class of identity this identity provider produces.default CompletableFuture<TokenIdentity> resolveIdentity(ResolveIdentityRequest request) Resolve the identity from this identity provider.Returns anSdkTokenthat can be used to authorize a request.Methods inherited from interface software.amazon.awssdk.identity.spi.IdentityProviderresolveIdentity, resolveIdentity
- 
Method Details- 
resolveTokenSdkToken resolveToken()Returns anSdkTokenthat can be used to authorize a request. Each implementation of SdkTokenProvider can choose its own strategy for loading token. For example, an implementation might load token from an existing key management system, or load new token when token is refreshed.- Returns:
- AwsToken which the caller can use to authorize an AWS request using token authorization for a request.
 
- 
identityTypeDescription copied from interface:IdentityProviderRetrieve the class of identity this identity provider produces. This is necessary for the SDK core to determine which identity provider should be used to resolve a specific type of identity.- Specified by:
- identityTypein interface- IdentityProvider<TokenIdentity>
 
- 
resolveIdentityDescription copied from interface:IdentityProviderResolve the identity from this identity provider.- Specified by:
- resolveIdentityin interface- IdentityProvider<TokenIdentity>
- Parameters:
- request- The request to resolve an Identity
 
 
-