private static final class CryptoConfiguration.ReadOnly extends CryptoConfiguration
Modifier | Constructor and Description |
---|---|
private |
ReadOnly() |
Modifier and Type | Method and Description |
---|---|
boolean |
isReadOnly() |
void |
setCryptoMode(CryptoMode cryptoMode)
Sets the crypto mode; applicable only to the S3 encryption client.
|
void |
setCryptoProvider(java.security.Provider cryptoProvider)
Sets the crypto provider to the specified provider.
|
void |
setIgnoreMissingInstructionFile(boolean ignoreMissingInstructionFile) |
void |
setKmsRegion(Regions kmsRegion)
Sets the KMS region for the AWS KMS client when such client is internally
instantiated instead of externally passed in by users; or null if no
explicit KMS region is explicitly configured.This KMS region parameter is
ignored when the AWS KMS client of the S3 encryption client is explicitly
passed in by the users, instead of being implicitly created.
|
void |
setStorageMode(CryptoStorageMode storageMode)
Sets the storage mode to the specified mode.
|
CryptoConfiguration |
withCryptoMode(CryptoMode cryptoMode)
Fluent API to set the crypto mode; applicable only to the S3 encryption
client.
|
CryptoConfiguration |
withCryptoProvider(java.security.Provider cryptoProvider)
Sets the crypto provider to the specified provider, and returns the
updated CryptoConfiguration object.
|
CryptoConfiguration |
withIgnoreMissingInstructionFile(boolean ignoreMissingInstructionFile)
Fluent API to set the property to ignore instruction file that cannot be
found during a GET operation.
|
CryptoConfiguration |
withKmsRegion(Regions kmsRegion)
Fluent API for setting the KMS region for the AWS KMS client when such
client is internally instantiated instead of externally passed in by
users; or null if no explicit KMS region is explicitly configured.This
KMS region parameter is ignored when the AWS KMS client of the S3
encryption client is explicitly passed in by the users, instead of being
implicitly created.
|
CryptoConfiguration |
withStorageMode(CryptoStorageMode storageMode)
Sets the storage mode to the specified mode, and returns the updated
CryptoConfiguration object.
|
clone, getAwsKmsRegion, getCryptoMode, getCryptoProvider, getKmsRegion, getStorageMode, isIgnoreMissingInstructionFile, readOnly, setAwsKmsRegion, withAwsKmsRegion
public boolean isReadOnly()
isReadOnly
in class CryptoConfiguration
public void setStorageMode(CryptoStorageMode storageMode)
CryptoConfiguration
setStorageMode
in class CryptoConfiguration
storageMode
- The storage mode to be used for storing encryption
information.public CryptoConfiguration withStorageMode(CryptoStorageMode storageMode)
CryptoConfiguration
withStorageMode
in class CryptoConfiguration
storageMode
- The storage mode to be used for storing encryption
information.public void setCryptoProvider(java.security.Provider cryptoProvider)
CryptoConfiguration
setCryptoProvider
in class CryptoConfiguration
cryptoProvider
- The crypto provider whose encryption implementation will be
used to encrypt and decrypt data.public CryptoConfiguration withCryptoProvider(java.security.Provider cryptoProvider)
CryptoConfiguration
withCryptoProvider
in class CryptoConfiguration
cryptoProvider
- The crypto provider whose encryption implementation will be
used to encrypt and decrypt data.public void setCryptoMode(CryptoMode cryptoMode)
CryptoConfiguration
setCryptoMode
in class CryptoConfiguration
public CryptoConfiguration withCryptoMode(CryptoMode cryptoMode)
CryptoConfiguration
withCryptoMode
in class CryptoConfiguration
public void setIgnoreMissingInstructionFile(boolean ignoreMissingInstructionFile)
setIgnoreMissingInstructionFile
in class CryptoConfiguration
ignoreMissingInstructionFile
- true to ignore instruction file that cannot be found during a
GET operation; false otherwise. Default is true. This property
is ignored if the crypto mode is
CryptoMode.StrictAuthenticatedEncryption
where missing
instruction file would always cause security exception.public CryptoConfiguration withIgnoreMissingInstructionFile(boolean ignoreMissingInstructionFile)
CryptoConfiguration
withIgnoreMissingInstructionFile
in class CryptoConfiguration
public void setKmsRegion(Regions kmsRegion)
CryptoConfiguration
setKmsRegion
in class CryptoConfiguration
public CryptoConfiguration withKmsRegion(Regions kmsRegion)
CryptoConfiguration
withKmsRegion
in class CryptoConfiguration