public class COSFilterAESDecryptionDefault extends ASBufferingInFilter
BF_BUFFER_SIZE, internalBuffer| Constructor and Description |
|---|
COSFilterAESDecryptionDefault(ASInputStream stream,
COSKey objectKey,
byte[] encryptionKey,
boolean decryptingCOSStream)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
read(byte[] buffer,
int size) |
addToBuffer, bufferPop, bufferPopArray, bufferSize, close, concatenate, decode, feedBuffer, getBufferBegin, getBufferCapacity, getBufferEnd, processBuffer, resetgetInputStream, read, read, setInputStream, skipavailable, mark, markSupported, read, skippublic COSFilterAESDecryptionDefault(ASInputStream stream, COSKey objectKey, byte[] encryptionKey, boolean decryptingCOSStream) throws IOException, GeneralSecurityException
stream - is stream with encrypted data.objectKey - contains object and generation numbers from object
identifier for object that is being decrypted. If it is
direct object, objectKey is taken from indirect object
that contains it.encryptionKey - is encryption key that is calculated from user
password and encryption dictionary.IOExceptionGeneralSecurityExceptionpublic int read(byte[] buffer,
int size)
throws IOException
read in class ASInFilterIOExceptionCopyright © 2015–2016 The veraPDF Consortium. All rights reserved.