public class COSFilterRC4DecryptionDefault extends ASBufferedInFilter
| Modifier and Type | Field and Description |
|---|---|
static int |
MAXIMAL_KEY_LENGTH |
BF_BUFFER_SIZE, buffernPos, 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, getReadCounter, initialize, isEOF, peek, peek, processBuffer, read, readByte, resetReadCounter, skip, unread, unreadclose, getInputStream, incrementResourceUsers, read, setInputStreamcreateStreamFromStreamavailable, 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 ASBufferedInFilterIOExceptionpublic int read(byte[] buffer,
int off,
int size)
throws IOException
read in class InputStreamIOExceptionpublic void reset()
throws IOException
ASBufferedInFilterreset in class ASBufferedInFilterIOExceptionpublic static byte[] getObjectKeyDigest(COSKey objectKey)
Copyright © 2015–2017 The veraPDF Consortium. All rights reserved.