public class CipherFactory
extends java.lang.Object
createCipher() will produce a new, identical
Cipher object. Each returned Cipher will encrypt data with
| コンストラクタと説明 |
|---|
CipherFactory(javax.crypto.SecretKey symmetricKey,
int cipherMode,
byte[] initVectorBytes,
java.security.Provider cryptoProvider)
Creates a new CipherFactory that will produce ciphers using the specified
key, mode, IV and provider.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
javax.crypto.Cipher |
createCipher()
Creates a new Cipher instance based on the crypto parameters specified in
the constructor.
|
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()