Package com.amazonaws.auth
Class SessionCredentialsProviderFactory
- java.lang.Object
-
- com.amazonaws.auth.SessionCredentialsProviderFactory
-
public class SessionCredentialsProviderFactory extends Object
Session credentials provider factory to share providers across potentially many clients.
-
-
Constructor Summary
Constructors Constructor Description SessionCredentialsProviderFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static STSSessionCredentialsProvider
getSessionCredentialsProvider(AWSCredentials longTermCredentials, String serviceEndpoint, ClientConfiguration stsClientConfiguration)
Gets a session credentials provider for the long-term credentials and service endpoint given.
-
-
-
Method Detail
-
getSessionCredentialsProvider
public static STSSessionCredentialsProvider getSessionCredentialsProvider(AWSCredentials longTermCredentials, String serviceEndpoint, ClientConfiguration stsClientConfiguration)
Gets a session credentials provider for the long-term credentials and service endpoint given. These are shared globally to support reuse of session tokens.- Parameters:
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 theAWSSecurityTokenService
used to fetch session credentials.
-
-