public class CipherFactory extends Object
| Constructor and Description |
|---|
CipherFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
createContentCipher(boolean forEncryption,
CipherParameters encKey,
AlgorithmIdentifier encryptionAlgID)
Create a content cipher for encrypting bulk data.
|
static CipherOutputStream |
createOutputStream(OutputStream dOut,
Object cipher)
Return a new CipherOutputStream based on the passed in cipher.
|
public static Object createContentCipher(boolean forEncryption, CipherParameters encKey, AlgorithmIdentifier encryptionAlgID) throws 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.IllegalArgumentExceptionpublic static CipherOutputStream createOutputStream(OutputStream dOut, Object cipher)
dOut - the output stream to write the processed data to.cipher - the cipher to use.Copyright © 2015–2020 The veraPDF Consortium. All rights reserved.