Class SsoAccessTokenProvider
java.lang.Object
software.amazon.awssdk.services.sso.internal.SsoAccessTokenProvider
- All Implemented Interfaces:
- SdkTokenProvider,- IdentityProvider<TokenIdentity>
@SdkInternalApi
public final class SsoAccessTokenProvider
extends Object
implements SdkTokenProvider
Resolve the access token from the cached token file. If the token has expired then throw out an exception to ask the users to
 update the token. This provider can also be replaced by any other implementation of resolving the access token. The users can
 resolve the access token in their own way and add it to the 
SsoCredentialsProvider.Builder.refreshRequest(software.amazon.awssdk.services.sso.model.GetRoleCredentialsRequest).- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.identity.spi.IdentityProviderresolveIdentity, resolveIdentityMethods inherited from interface software.amazon.awssdk.auth.token.credentials.SdkTokenProvideridentityType, resolveIdentity
- 
Constructor Details- 
SsoAccessTokenProvider
 
- 
- 
Method Details- 
resolveTokenDescription copied from interface:SdkTokenProviderReturns 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.- Specified by:
- resolveTokenin interface- SdkTokenProvider
- Returns:
- AwsToken which the caller can use to authorize an AWS request using token authorization for a request.
 
 
-