public class CipherFactory
extends java.lang.Object
Cipher
s for a given algorithm and key.Constructor and Description |
---|
CipherFactory(CryptoAlgoSpec algo,
java.security.Key key)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
javax.crypto.Cipher |
decryptionChipher() |
javax.crypto.Cipher |
encryptionChipher() |
public CipherFactory(CryptoAlgoSpec algo, java.security.Key key)
algo
- the JCA algorithm to use.key
- a key compatible with the algorithm.java.lang.NullPointerException
- if any argument is null
.