Class S3Config


  • public class S3Config
    extends java.lang.Object
    Configuration for an Amazon AWS S3 bucket
    Since:
    4.3
    • Constructor Summary

      Constructors 
      Constructor Description
      S3Config​(java.lang.String region, java.lang.String bucket, java.lang.String storageClass, java.lang.String accessKey, java.lang.String secretKey, int expirationSeconds, boolean disableSslVerify)
      Constructor for S3Config.
      S3Config​(java.lang.String hostname, java.lang.String region, java.lang.String bucket, java.lang.String storageClass, java.lang.String accessKey, java.lang.String secretKey, int expirationSeconds, boolean disableSslVerify)
      Constructor for S3Config.
    • Field Detail

      • hostname

        private final java.lang.String hostname
      • region

        private final java.lang.String region
      • bucket

        private final java.lang.String bucket
      • storageClass

        private final java.lang.String storageClass
      • accessKey

        private final java.lang.String accessKey
      • secretKey

        private final java.lang.String secretKey
      • expirationSeconds

        private final int expirationSeconds
      • disableSslVerify

        private final boolean disableSslVerify
    • Constructor Detail

      • S3Config

        public S3Config​(java.lang.String hostname,
                        java.lang.String region,
                        java.lang.String bucket,
                        java.lang.String storageClass,
                        java.lang.String accessKey,
                        java.lang.String secretKey,
                        int expirationSeconds,
                        boolean disableSslVerify)

        Constructor for S3Config.

        Parameters:
        hostname - S3 API host
        region - AWS region
        bucket - S3 storage bucket
        storageClass - S3 storage class
        accessKey - access key for authenticating to AWS
        secretKey - secret key for authenticating to AWS
        expirationSeconds - period in seconds after which requests signed for this bucket will expire
        disableSslVerify - if true disable Amazon server certificate and hostname verification
        Since:
        5.8
      • S3Config

        public S3Config​(java.lang.String region,
                        java.lang.String bucket,
                        java.lang.String storageClass,
                        java.lang.String accessKey,
                        java.lang.String secretKey,
                        int expirationSeconds,
                        boolean disableSslVerify)

        Constructor for S3Config.

        Parameters:
        region - AWS region
        bucket - S3 storage bucket
        storageClass - S3 storage class
        accessKey - access key for authenticating to AWS
        secretKey - secret key for authenticating to AWS
        expirationSeconds - period in seconds after which requests signed for this bucket will expire
        disableSslVerify - if true disable Amazon server certificate and hostname verification
    • Method Detail

      • getHostname

        public java.lang.String getHostname()
        Get the hostname.
        Returns:
        Get the S3 API host
        Since:
        5.8
      • getRegion

        public java.lang.String getRegion()
        Get the region.
        Returns:
        Get name of AWS region this bucket resides in
      • getBucket

        public java.lang.String getBucket()
        Get the bucket.
        Returns:
        Get S3 storage bucket name
      • getStorageClass

        public java.lang.String getStorageClass()
        Get the storageClass.
        Returns:
        S3 storage class to use for objects stored in this bucket
      • getAccessKey

        public java.lang.String getAccessKey()
        Get the accessKey.
        Returns:
        access key for authenticating to AWS
      • getSecretKey

        public java.lang.String getSecretKey()
        Get the secretKey.
        Returns:
        secret key for authenticating to AWS
      • getExpirationSeconds

        public int getExpirationSeconds()
        Get the expirationSeconds.
        Returns:
        period in seconds after which requests signed for this bucket will expire
      • isDisableSslVerify

        boolean isDisableSslVerify()
        Returns:
        true if Amazon server certificate and hostname verification is disabled