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.
Interface for loading
SdkToken that are used for authentication.-
Method Summary
Modifier 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.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
Description 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 interfaceIdentityProvider<TokenIdentity>
-
resolveIdentity
Description copied from interface:IdentityProviderResolve the identity from this identity provider.- Specified by:
resolveIdentityin interfaceIdentityProvider<TokenIdentity>- Parameters:
request- The request to resolve an Identity
-