Class SsoCredentialsProvider

java.lang.Object
software.amazon.awssdk.services.sso.auth.SsoCredentialsProvider
All Implemented Interfaces:
AutoCloseable, AwsCredentialsProvider, IdentityProvider<AwsCredentialsIdentity>, ToCopyableBuilder<SsoCredentialsProvider.Builder,SsoCredentialsProvider>, SdkAutoCloseable

An implementation of AwsCredentialsProvider that periodically sends a GetRoleCredentialsRequest to the AWS Single Sign-On Service to maintain short-lived sessions to use for authentication. These sessions are updated using a single calling thread (by default) or asynchronously (if SsoCredentialsProvider.Builder.asyncCredentialUpdateEnabled(Boolean) is set). If the credentials are not successfully updated before expiration, calls to resolveCredentials() will block until they are updated successfully. Users of this provider must close() it when they are finished using it. This is created using builder().