public class COSFilterRC4DecryptionDefault extends ASBufferedInFilter
| Modifier and Type | Field and Description |
|---|---|
static int |
MAXIMAL_KEY_LENGTH |
BF_BUFFER_SIZE, buffer, START_BUFFER_SIZEisClosed, isSourceClosed, resourceUsers| Constructor and Description |
|---|
COSFilterRC4DecryptionDefault(ASInputStream stream,
COSKey objectKey,
byte[] encryptionKey)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getObjectKeyDigest(COSKey objectKey)
Gets a byte string consisting of object number and object generation
concatenated.
|
int |
read(byte[] buffer,
int size) |
int |
read(byte[] buffer,
int off,
int size) |
void |
reset() |
addToBuffer, bufferPop, bufferPopArray, bufferSize, closeResource, concatenate, feedBuffer, getBufferBegin, getBufferCapacity, getBufferEnd, getReadCounter, getStream, getStreamUntilToken, initialize, isEOF, peek, peek, processBuffer, read, readByte, resetReadCounter, skip, unread, unreadclose, decrementResourceUsers, 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
reset in class ASBufferedInFilterIOExceptionpublic static byte[] getObjectKeyDigest(COSKey objectKey)
objectKey - is key of object.Copyright © 2015–2019 The veraPDF Consortium. All rights reserved.