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

    Fields
    Modifier and Type
    Field
    Description
    protected static final com.amazonaws.auth.AWSCredentialsProvider
     
    protected final String
     
    protected static final com.amazonaws.auth.AWSCredentialsProvider
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates 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 Type
    Method
    Description
    com.amazonaws.auth.AWSCredentials
     
    static com.amazonaws.auth.AWSCredentialsProvider
    Gets a Nuxeo AWS Credentials Provider for the default configuration.
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • INSTANCE

      protected static final com.amazonaws.auth.AWSCredentialsProvider INSTANCE
    • DEFAULT

      protected static final com.amazonaws.auth.AWSCredentialsProvider DEFAULT
    • id

      protected final String id
  • Constructor Details

    • 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, or null 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 interface com.amazonaws.auth.AWSCredentialsProvider
    • refresh

      public void refresh()
      Specified by:
      refresh in interface com.amazonaws.auth.AWSCredentialsProvider