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
-
-
Constructor Summary
Constructors Constructor Description NuxeoAWSCredentialsProvider()
Creates a new Nuxeo AWS Credentials Provider for the default configuration.NuxeoAWSCredentialsProvider(String id)
Creates a new Nuxeo AWS Credentials Provider for the given configuration.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.amazonaws.auth.AWSCredentials
getCredentials()
static com.amazonaws.auth.AWSCredentialsProvider
getInstance()
Gets a Nuxeo AWS Credentials Provider for the default configuration.void
refresh()
-
-
-
Field Detail
-
INSTANCE
protected static final com.amazonaws.auth.AWSCredentialsProvider INSTANCE
-
DEFAULT
protected static final com.amazonaws.auth.AWSCredentialsProvider DEFAULT
-
id
protected final String id
-
-
Constructor Detail
-
NuxeoAWSCredentialsProvider
public NuxeoAWSCredentialsProvider()
Creates a new Nuxeo AWS Credentials Provider for the default configuration.
-
NuxeoAWSCredentialsProvider
public NuxeoAWSCredentialsProvider(String id)
Creates a new Nuxeo AWS Credentials Provider for the given configuration.- Parameters:
id
- the configuration id, ornull
for the default- Since:
- 11.1
-
-
Method Detail
-
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
-
-