Interface SdkTokenProvider
- All Superinterfaces:
IdentityProvider<TokenIdentity>
- All Known Implementing Classes:
DefaultAwsTokenProvider,LazyTokenProvider,ProfileTokenProvider,SdkTokenProviderChain,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 Summary
Modifier and TypeMethodDescriptiondefault Class<TokenIdentity>default CompletableFuture<TokenIdentity>resolveIdentity(ResolveIdentityRequest request) Returns anSdkTokenthat can be used to authorize a request.Methods inherited from interface software.amazon.awssdk.identity.spi.IdentityProvider
resolveIdentity, resolveIdentity
-
Method Details
-
resolveToken
SdkToken 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.
-
identityType
- Specified by:
identityTypein interfaceIdentityProvider<TokenIdentity>
-
resolveIdentity
- Specified by:
resolveIdentityin interfaceIdentityProvider<TokenIdentity>
-