public class SessionCredentialsProviderFactory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
SessionCredentialsProviderFactory.Key
Key object for the cache combines the access key and the service
endpoint.
|
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<SessionCredentialsProviderFactory.Key,STSSessionCredentialsProvider> |
cache |
Constructor and Description |
---|
SessionCredentialsProviderFactory() |
Modifier and Type | Method and Description |
---|---|
static STSSessionCredentialsProvider |
getSessionCredentialsProvider(AWSCredentials longTermCredentials,
java.lang.String serviceEndpoint,
ClientConfiguration stsClientConfiguration)
Gets a session credentials provider for the long-term credentials and
service endpoint given.
|
private static final java.util.Map<SessionCredentialsProviderFactory.Key,STSSessionCredentialsProvider> cache
public static STSSessionCredentialsProvider getSessionCredentialsProvider(AWSCredentials longTermCredentials, java.lang.String serviceEndpoint, ClientConfiguration stsClientConfiguration)
longTermCredentials
- The long-term AWS account credentials used to initiate a
session.serviceEndpoint
- The service endpoint for the service the session credentials
will be used to access.stsClientConfiguration
- Client configuration for the AWSSecurityTokenService
used to fetch session credentials.