AmazonS3EncryptionClient
for further details.@Deprecated
public class CipherFactory
extends java.lang.Object
createCipher()
will
produce a new, identical Cipher object. Each returned Cipher will encrypt
data with exactly the same output as any other Cipher returned
by this instance of CipherFactory.Constructor and Description |
---|
CipherFactory(javax.crypto.SecretKey symmetricKey,
int cipherMode,
byte[] initVectorBytes,
java.security.Provider cryptoProvider)
Deprecated.
Creates a new CipherFactory that will produce ciphers using the specified
key, mode, IV and provider.
|
Modifier and Type | Method and Description |
---|---|
javax.crypto.Cipher |
createCipher()
Deprecated.
Creates a new Cipher instance based on the crypto parameters specified in
the constructor.
|
int |
getCipherMode()
Deprecated.
|
java.security.Provider |
getCryptoProvider()
Deprecated.
|
byte[] |
getIV()
Deprecated.
|
public CipherFactory(javax.crypto.SecretKey symmetricKey, int cipherMode, byte[] initVectorBytes, java.security.Provider cryptoProvider)
symmetricKey
- The symmetric key used in the ciphers created by this
factory.cipherMode
- The mode indicating whether the created ciphers are for
encrypting or decrypting.initVectorBytes
- The optional crypto IV used to initialize the
ciphers.cryptoProvider
- The optional Java crypto provider implementation,
if an alternate crypto provider is to be used.public javax.crypto.Cipher createCipher()
public java.security.Provider getCryptoProvider()
public int getCipherMode()
public byte[] getIV()