Package org.nuxeo.runtime.aws
Class NuxeoAWSCredentialsProvider
java.lang.Object
org.nuxeo.runtime.aws.NuxeoAWSCredentialsProvider
- All Implemented Interfaces:
com.amazonaws.auth.AWSCredentialsProvider
public class NuxeoAWSCredentialsProvider
extends Object
implements com.amazonaws.auth.AWSCredentialsProvider
AWS Credentials Provider that uses Nuxeo configuration, or uses the default AWS chain as a fallback.
- Since:
- 10.3
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCreates a new Nuxeo AWS Credentials Provider for the default configuration.Creates a new Nuxeo AWS Credentials Provider for the given configuration. -
Method Summary
Modifier and TypeMethodDescriptioncom.amazonaws.auth.AWSCredentials
static com.amazonaws.auth.AWSCredentialsProvider
Gets a Nuxeo AWS Credentials Provider for the default configuration.void
refresh()
-
Field Details
-
INSTANCE
protected static final com.amazonaws.auth.AWSCredentialsProvider INSTANCE -
DEFAULT
protected static final com.amazonaws.auth.AWSCredentialsProvider DEFAULT -
id
-
-
Constructor Details
-
NuxeoAWSCredentialsProvider
public NuxeoAWSCredentialsProvider()Creates a new Nuxeo AWS Credentials Provider for the default configuration. -
NuxeoAWSCredentialsProvider
Creates a new Nuxeo AWS Credentials Provider for the given configuration.- Parameters:
id
- the configuration id, ornull
for the default- Since:
- 11.1
-
-
Method Details
-
getInstance
public static com.amazonaws.auth.AWSCredentialsProvider getInstance()Gets a Nuxeo AWS Credentials Provider for the default configuration. -
getCredentials
public com.amazonaws.auth.AWSCredentials getCredentials()- Specified by:
getCredentials
in interfacecom.amazonaws.auth.AWSCredentialsProvider
-
refresh
public void refresh()- Specified by:
refresh
in interfacecom.amazonaws.auth.AWSCredentialsProvider
-