Class ChainingAWSCredentialsProvider

  • All Implemented Interfaces:
    com.amazonaws.auth.AWSCredentialsProvider

    public class ChainingAWSCredentialsProvider
    extends java.lang.Object
    implements com.amazonaws.auth.AWSCredentialsProvider
    Since:
    5.3.0
    • 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 instance.
      static com.amazonaws.auth.AWSCredentialsProvider getInstance​(java.lang.String credentialAccessKey, java.lang.String credentialSecretKey)
      Gets instance.
      static com.amazonaws.auth.AWSCredentialsProvider getInstance​(java.lang.String credentialAccessKey, java.lang.String credentialSecretKey, org.springframework.core.io.Resource credentialPropertiesFile)
      Gets instance.
      static com.amazonaws.auth.AWSCredentialsProvider getInstance​(java.lang.String credentialAccessKey, java.lang.String credentialSecretKey, org.springframework.core.io.Resource credentialPropertiesFile, java.lang.String profilePath, java.lang.String profileName)
      Gets instance.
      void refresh()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ChainingAWSCredentialsProvider

        public ChainingAWSCredentialsProvider()
    • Method Detail

      • getInstance

        public static com.amazonaws.auth.AWSCredentialsProvider getInstance()
        Gets instance.
        Returns:
        the instance
      • getInstance

        public static com.amazonaws.auth.AWSCredentialsProvider getInstance​(java.lang.String credentialAccessKey,
                                                                            java.lang.String credentialSecretKey)
        Gets instance.
        Parameters:
        credentialAccessKey - the credential access key
        credentialSecretKey - the credential secret key
        Returns:
        the instance
      • getInstance

        public static com.amazonaws.auth.AWSCredentialsProvider getInstance​(java.lang.String credentialAccessKey,
                                                                            java.lang.String credentialSecretKey,
                                                                            org.springframework.core.io.Resource credentialPropertiesFile)
        Gets instance.
        Parameters:
        credentialAccessKey - the credential access key
        credentialSecretKey - the credential secret key
        credentialPropertiesFile - the credential properties file
        Returns:
        the instance
      • getInstance

        public static com.amazonaws.auth.AWSCredentialsProvider getInstance​(java.lang.String credentialAccessKey,
                                                                            java.lang.String credentialSecretKey,
                                                                            org.springframework.core.io.Resource credentialPropertiesFile,
                                                                            java.lang.String profilePath,
                                                                            java.lang.String profileName)
        Gets instance.
        Parameters:
        credentialAccessKey - the credential access key
        credentialSecretKey - the credential secret key
        credentialPropertiesFile - the credential properties file
        profilePath - the profile path
        profileName - the profile name
        Returns:
        the instance
      • 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