Package co.kuali.coeus.s3.api
Class S3FileServiceFactoryBean
java.lang.Object
co.kuali.coeus.s3.api.S3FileServiceFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<S3FileService>,org.springframework.beans.factory.InitializingBean
public class S3FileServiceFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<S3FileService>, org.springframework.beans.factory.InitializingBean
A factory bean that creates instances of the S3FileService using an amazon client.
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClass<?>booleanbooleanbooleanbooleanvoidsetAccessKey(String accessKey) voidsetBucketName(String bucketName) voidsetConfidentialData(boolean confidentialData) voidsetConfidentialDataTagName(String confidentialDataTagName) voidsetEncryptionEnabled(boolean encryptionEnabled) voidsetEncryptionKey(String encryptionKey) Sets a master KMS key to be used to encrypt auto-provisioned S3 bucketsvoidvoidsetReplicationBucket(boolean replicationBucket) voidsetSecretKey(String secretKey) voidsetSingleton(boolean singleton)
-
Constructor Details
-
S3FileServiceFactoryBean
public S3FileServiceFactoryBean()
-
-
Method Details
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<S3FileService>
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<S3FileService>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<S3FileService>
-
setSingleton
public void setSingleton(boolean singleton) -
getBucketName
-
setBucketName
-
getAccessKey
-
setAccessKey
-
getSecretKey
-
setSecretKey
-
getRegion
-
setRegion
-
isReplicationBucket
public boolean isReplicationBucket() -
setReplicationBucket
public void setReplicationBucket(boolean replicationBucket) -
isEncryptionEnabled
public boolean isEncryptionEnabled() -
setEncryptionEnabled
public void setEncryptionEnabled(boolean encryptionEnabled) -
getEncryptionKey
-
setEncryptionKey
Sets a master KMS key to be used to encrypt auto-provisioned S3 buckets- Parameters:
encryptionKey- - A master KMS key ID or ARN
-
getConfidentialDataTagName
-
setConfidentialDataTagName
-
isConfidentialData
public boolean isConfidentialData() -
setConfidentialData
public void setConfidentialData(boolean confidentialData) -
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-