public class CryptoConfiguration extends Object
Constructor and Description |
---|
CryptoConfiguration()
Creates a new CryptoConfiguration object with default storage mode and crypto provider settings.
|
CryptoConfiguration(CryptoMode cryptoMode) |
Modifier and Type | Method and Description |
---|---|
CryptoMode |
getCryptoMode()
Returns the optionally specified crypto mode applicable only to the S3
encryption client; or null.
|
Provider |
getCryptoProvider()
Returns the crypto provider whose encryption implementation will be used to encrypt and decrypt data.
|
CryptoStorageMode |
getStorageMode()
Returns the current storage mode of a CryptoConfiguration object.
|
void |
setCryptoMode(CryptoMode cryptoMode)
Sets the crypto mode; applicable only to the S3 encryption client.
|
void |
setCryptoProvider(Provider cryptoProvider)
Sets the crypto provider to the specified provider.
|
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(Provider cryptoProvider)
Sets the crypto provider to the specified provider, and returns the updated CryptoConfiguration object.
|
CryptoConfiguration |
withStorageMode(CryptoStorageMode storageMode)
Sets the storage mode to the specified mode, and returns the updated CryptoConfiguration object.
|
public CryptoConfiguration()
public CryptoConfiguration(CryptoMode cryptoMode)
cryptoMode
- cryptographic mode to be usedUnsupportedOperationException
- if the necessary security provider cannot be found or the
necessary cryptographic operations are not supported for the
specified crypto mode.public void setStorageMode(CryptoStorageMode storageMode)
storageMode
- The storage mode to be used for storing encryption information.public CryptoConfiguration withStorageMode(CryptoStorageMode storageMode)
storageMode
- The storage mode to be used for storing encryption information.public CryptoStorageMode getStorageMode()
public void setCryptoProvider(Provider cryptoProvider)
cryptoProvider
- The crypto provider whose encryption implementation will be used to encrypt and decrypt data.public CryptoConfiguration withCryptoProvider(Provider cryptoProvider)
cryptoProvider
- The crypto provider whose encryption implementation will be used to encrypt and decrypt data.public Provider getCryptoProvider()
public CryptoMode getCryptoMode()
public void setCryptoMode(CryptoMode cryptoMode)
UnsupportedOperationException
- if the necessary security provider cannot be found or the
necessary cryptographic operations are not supported for the
specified crypto mode.public CryptoConfiguration withCryptoMode(CryptoMode cryptoMode)
UnsupportedOperationException
- if the necessary security provider cannot be found or the
necessary cryptographic operations are not supported for the
specified crypto mode.Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.