Class SsoOidcTokenProvider
java.lang.Object
software.amazon.awssdk.services.ssooidc.SsoOidcTokenProvider
- All Implemented Interfaces:
AutoCloseable,SdkTokenProvider,IdentityProvider<TokenIdentity>,SdkAutoCloseable
@ThreadSafe
public final class SsoOidcTokenProvider
extends Object
implements SdkTokenProvider, SdkAutoCloseable
Implementation of
SdkTokenProvider that is capable of loading and
storing SSO tokens to ~/.aws/sso/cache. This is also capable of
refreshing the cached token via the SSO-OIDC service.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SsoOidcTokenProvider.Builderbuilder()voidclose()Returns anSdkTokenthat can be used to authorize a request.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.identity.spi.IdentityProvider
resolveIdentity, resolveIdentityMethods inherited from interface software.amazon.awssdk.auth.token.credentials.SdkTokenProvider
identityType, resolveIdentity
-
Method Details
-
resolveToken
Description 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 interfaceSdkTokenProvider- Returns:
- AwsToken which the caller can use to authorize an AWS request using token authorization for a request.
-
builder
-
close
public void close()Description copied from interface:SdkAutoCloseable- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSdkAutoCloseable
-