Class StsCredentialsProvider
- java.lang.Object
-
- software.amazon.awssdk.crt.CrtResource
-
- software.amazon.awssdk.crt.auth.credentials.CredentialsProvider
-
- software.amazon.awssdk.crt.auth.credentials.StsCredentialsProvider
-
- All Implemented Interfaces:
AutoCloseable
public class StsCredentialsProvider extends CredentialsProvider
A class that wraps a provider that gets credentials from Security Token Service (STS).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
StsCredentialsProvider.Builder
A builder for creating a sts credentials provider.-
Nested classes/interfaces inherited from class software.amazon.awssdk.crt.CrtResource
CrtResource.ResourceInstance
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StsCredentialsProvider.Builder
builder()
Get a builder for creating a custom sts credentials provider.static StsCredentialsProvider
create()
Create a sts credentials provider.-
Methods inherited from class software.amazon.awssdk.crt.auth.credentials.CredentialsProvider
canReleaseReferencesImmediately, getCredentials, getShutdownCompleteFuture, releaseNativeHandle
-
Methods inherited from class software.amazon.awssdk.crt.CrtResource
acquireNativeHandle, addRef, addReferenceTo, close, collectNativeResource, collectNativeResources, decRef, getNativeHandle, getResourceLogDescription, isNull, logNativeResources, releaseReferences, removeReferenceTo, setDescription, swapReferenceTo, waitForNoResources
-
-
-
-
Method Detail
-
create
public static StsCredentialsProvider create()
Create a sts credentials provider.- Returns:
- A sts credentials provider.
-
builder
public static StsCredentialsProvider.Builder builder()
Get a builder for creating a custom sts credentials provider.- Returns:
- A builder.
-
-