List of usage examples for com.amazonaws.services.s3.model CryptoConfiguration setCryptoMode
public void setCryptoMode(CryptoMode cryptoMode) throws UnsupportedOperationException
From source file:org.apache.nifi.processors.aws.s3.encryption.service.StandardS3ClientSideEncryptionService.java
License:Apache License
private CryptoConfiguration cryptoConfiguration() { CryptoConfiguration config = new CryptoConfiguration(); if (!StringUtils.isBlank(cryptoMode)) { config.setCryptoMode(CryptoMode.valueOf(cryptoMode)); }/*from w w w . j av a2 s .c o m*/ if (!StringUtils.isBlank(cryptoStorageMode)) { config.setStorageMode(CryptoStorageMode.valueOf(cryptoStorageMode)); } if (!StringUtils.isBlank(kmsRegion)) { config.setAwsKmsRegion(Region.getRegion(Regions.fromName(kmsRegion))); } config.setIgnoreMissingInstructionFile(ignoreMissingInstructionFile); return config; }