Class SsoAccessTokenProvider
- java.lang.Object
-
- software.amazon.awssdk.services.sso.internal.SsoAccessTokenProvider
-
- All Implemented Interfaces:
SdkTokenProvider,IdentityProvider<TokenIdentity>
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 theSsoCredentialsProvider.Builder.refreshRequest(software.amazon.awssdk.services.sso.model.GetRoleCredentialsRequest).
-
-
Constructor Summary
Constructors Constructor Description SsoAccessTokenProvider(Path cachedTokenFilePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SdkTokenresolveToken()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.identity.spi.IdentityProvider
resolveIdentity, resolveIdentity
-
Methods inherited from interface software.amazon.awssdk.auth.token.credentials.SdkTokenProvider
identityType, resolveIdentity
-
-
-
-
Constructor Detail
-
SsoAccessTokenProvider
public SsoAccessTokenProvider(Path cachedTokenFilePath)
-
-
Method Detail
-
resolveToken
public SdkToken resolveToken()
- Specified by:
resolveTokenin interfaceSdkTokenProvider
-
-