Class ProfileCredentialsProvider
- java.lang.Object
-
- software.amazon.awssdk.crt.CrtResource
-
- software.amazon.awssdk.crt.auth.credentials.CredentialsProvider
-
- software.amazon.awssdk.crt.auth.credentials.ProfileCredentialsProvider
-
- All Implemented Interfaces:
AutoCloseable
public class ProfileCredentialsProvider extends CredentialsProvider
A class that wraps a provider that gets credentials from profile files.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ProfileCredentialsProvider.Builder
A builder for creating a custom profile 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 ProfileCredentialsProvider.Builder
builder()
Get a builder for creating a custom profile credentials provider.static ProfileCredentialsProvider
create()
Create a profile credentials provider using the default file locations and profile name.-
Methods inherited from class software.amazon.awssdk.crt.auth.credentials.CredentialsProvider
getCredentials, getShutdownCompleteFuture
-
Methods inherited from class software.amazon.awssdk.crt.CrtResource
addRef, addReferenceTo, close, collectNativeResource, collectNativeResources, decRef, getNativeHandle, getResourceLogDescription, isNull, logNativeResources, logNativeResources, removeReferenceTo, setDescription, waitForNoResources
-
-
-
-
Method Detail
-
create
public static ProfileCredentialsProvider create()
Create a profile credentials provider using the default file locations and profile name.- Returns:
- A profile credentials provider.
-
builder
public static ProfileCredentialsProvider.Builder builder()
Get a builder for creating a custom profile credentials provider.- Returns:
- A builder.
-
-