|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.crypto.util.CipherFactory
Factory methods for creating Cipher objects and CipherOutputStreams.
| Constructor Summary | |
CipherFactory()
|
|
| Method Summary | |
static java.lang.Object |
createContentCipher(boolean forEncryption,
CipherParameters encKey,
AlgorithmIdentifier encryptionAlgID)
Create a content cipher for encrypting bulk data. |
static CipherOutputStream |
createOutputStream(java.io.OutputStream dOut,
java.lang.Object cipher)
Return a new CipherOutputStream based on the passed in cipher. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CipherFactory()
| Method Detail |
public static java.lang.Object createContentCipher(boolean forEncryption,
CipherParameters encKey,
AlgorithmIdentifier encryptionAlgID)
throws java.lang.IllegalArgumentException
forEncryption - true if the cipher is for encryption, false otherwise.encKey - the basic key to use.encryptionAlgID - identifying algorithm OID and parameters to use.
java.lang.IllegalArgumentException
public static CipherOutputStream createOutputStream(java.io.OutputStream dOut,
java.lang.Object cipher)
dOut - the output stream to write the processed data to.cipher - the cipher to use.
|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||