STSSessionCredentialsProvider (AWS SDK for Java (original) (raw)


@ThreadSafe
public class STSSessionCredentialsProvider
extends Object
implements AWSSessionCredentialsProvider, Closeable
AWSCredentialsProvider implementation that uses the AWS Security Token Service to create temporary, short-lived sessions to use for authentication. This credentials provider uses a background thread to refresh credentials. This background thread can be shut down via theclose() method when the credentials provider is no longer used.
Migrating to the AWS SDK for Java v2
The v2 equivalent of this class isStsGetSessionTokenCredentialsProvider
See Migration Guide for more information.