Class S3Config
java.lang.Object
org.eclipse.jgit.lfs.server.s3.S3Config
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionS3Config(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
Modifier and TypeMethodDescriptionGet theaccessKey.Get thebucket.intGet theexpirationSeconds.Get thehostname.Get theregion.Get thesecretKey.Get thestorageClass.(package private) boolean
-
Field Details
-
hostname
-
region
-
bucket
-
storageClass
-
accessKey
-
secretKey
-
expirationSeconds
private final int expirationSeconds -
disableSslVerify
private final boolean disableSslVerify
-
-
Constructor Details
-
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- iftruedisable 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- iftruedisable Amazon server certificate and hostname verification
-
-
Method Details
-
getHostname
-
getRegion
-
getBucket
-
getStorageClass
Get thestorageClass.- Returns:
- S3 storage class to use for objects stored in this bucket
-
getAccessKey
-
getSecretKey
-
getExpirationSeconds
public int getExpirationSeconds()Get theexpirationSeconds.- Returns:
- period in seconds after which requests signed for this bucket will expire
-
isDisableSslVerify
boolean isDisableSslVerify()- Returns:
trueif Amazon server certificate and hostname verification is disabled
-