Package org.eclipse.jgit.lfs.server.s3
Class S3Config
- java.lang.Object
-
- org.eclipse.jgit.lfs.server.s3.S3Config
-
public class S3Config extends Object
Configuration for an Amazon AWS S3 bucket- Since:
- 4.3
-
-
Constructor Summary
Constructors Constructor Description S3Config(String region, String bucket, String storageClass, String accessKey, String secretKey, int expirationSeconds, boolean disableSslVerify)
Constructor for S3Config.S3Config(String hostname, String region, String bucket, String storageClass, String accessKey, String secretKey, int expirationSeconds, boolean disableSslVerify)
Constructor for S3Config.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccessKey()
Get theaccessKey
.String
getBucket()
Get thebucket
.int
getExpirationSeconds()
Get theexpirationSeconds
.String
getHostname()
Get thehostname
.String
getRegion()
Get theregion
.String
getSecretKey()
Get thesecretKey
.String
getStorageClass()
Get thestorageClass
.
-
-
-
Constructor Detail
-
S3Config
public S3Config(String hostname, String region, String bucket, String storageClass, String accessKey, String secretKey, int expirationSeconds, boolean disableSslVerify)
Constructor for S3Config.
- Parameters:
hostname
- S3 API hostregion
- AWS regionbucket
- S3 storage bucketstorageClass
- S3 storage classaccessKey
- access key for authenticating to AWSsecretKey
- secret key for authenticating to AWSexpirationSeconds
- period in seconds after which requests signed for this bucket will expiredisableSslVerify
- iftrue
disable Amazon server certificate and hostname verification- Since:
- 5.8
-
S3Config
public S3Config(String region, String bucket, String storageClass, String accessKey, String secretKey, int expirationSeconds, boolean disableSslVerify)
Constructor for S3Config.
- Parameters:
region
- AWS regionbucket
- S3 storage bucketstorageClass
- S3 storage classaccessKey
- access key for authenticating to AWSsecretKey
- secret key for authenticating to AWSexpirationSeconds
- period in seconds after which requests signed for this bucket will expiredisableSslVerify
- iftrue
disable Amazon server certificate and hostname verification
-
-
Method Detail
-
getHostname
public String getHostname()
Get thehostname
.- Returns:
- Get the S3 API host
- Since:
- 5.8
-
getRegion
public String getRegion()
Get theregion
.- Returns:
- Get name of AWS region this bucket resides in
-
getBucket
public String getBucket()
Get thebucket
.- Returns:
- Get S3 storage bucket name
-
getStorageClass
public String getStorageClass()
Get thestorageClass
.- Returns:
- S3 storage class to use for objects stored in this bucket
-
getAccessKey
public String getAccessKey()
Get theaccessKey
.- Returns:
- access key for authenticating to AWS
-
getSecretKey
public String getSecretKey()
Get thesecretKey
.- Returns:
- secret key for authenticating to AWS
-
getExpirationSeconds
public int getExpirationSeconds()
Get theexpirationSeconds
.- Returns:
- period in seconds after which requests signed for this bucket will expire
-
-