public class COSFilterRC4DecryptionDefault extends ASBufferingInFilter
| Modifier and Type | Field and Description |
|---|---|
static int |
MAXIMAL_KEY_LENGTH |
BF_BUFFER_SIZE, internalBuffernPos, resourceUsers| Constructor and Description |
|---|
COSFilterRC4DecryptionDefault(ASInputStream stream,
COSKey objectKey,
byte[] encryptionKey)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getObjectKeyDigest(COSKey objectKey) |
int |
read(byte[] buffer,
int size) |
int |
read(byte[] buffer,
int off,
int size) |
void |
reset() |
addToBuffer, bufferPop, bufferPopArray, bufferSize, closeResource, concatenate, decode, feedBuffer, getBufferBegin, getBufferCapacity, getBufferEnd, processBuffergetInputStream, read, read, setInputStream, skipclose, createStreamFromStreamavailable, mark, markSupported, skippublic static final int MAXIMAL_KEY_LENGTH
public COSFilterRC4DecryptionDefault(ASInputStream stream, COSKey objectKey, byte[] encryptionKey) throws IOException, NoSuchAlgorithmException
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.IOExceptionNoSuchAlgorithmExceptionpublic int read(byte[] buffer,
int size)
throws IOException
read in class ASInFilterIOExceptionpublic int read(byte[] buffer,
int off,
int size)
throws IOException
read in class InputStreamIOExceptionpublic void reset()
throws IOException
ASBufferingInFilterreset in class ASBufferingInFilterIOExceptionpublic static byte[] getObjectKeyDigest(COSKey objectKey)
Copyright © 2015–2017 The veraPDF Consortium. All rights reserved.