public class COSFilterAESDecryptionDefault extends ASBufferingInFilter
BF_BUFFER_SIZE, internalBuffernPos, resourceUsers| 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, closeResource, concatenate, decode, feedBuffer, getBufferBegin, getBufferCapacity, getBufferEnd, processBuffer, reset, skipclose, getInputStream, read, read, setInputStreamcreateStreamFromStreamavailable, 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–2017 The veraPDF Consortium. All rights reserved.