Interface EncryptionHandlerState
public interface EncryptionHandlerState
Object of this type allows the caller to perform decryption/encryption sequentially
for parts of the processed data stream.
Object of this type is associated with the EncryptionHandler object and
contain the current state of the decryption/encryption process for specific data.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbyte[]finish()Finishes the process of distributed decryption/encryption of specific data.byte[]init(byte[] buffer, int start, int len, byte[] keyAddition, int mode) byte[]update(byte[] buffer, int start, int len) Continues the process of distributed decryption/encryption of specific data.
-
Field Details
-
DECRYPT
static final int DECRYPT- See Also:
-
ENCRYPT
static final int ENCRYPT- See Also:
-
-
Method Details
-
init
byte[] init(byte[] buffer, int start, int len, byte[] keyAddition, int mode) throws PDFSecurityException - Throws:
PDFSecurityException
-
update
Continues the process of distributed decryption/encryption of specific data.- Parameters:
buffer- Contains the current portion of the processed data- Returns:
- Decrypted or Encrypted portion of data
- Throws:
PDFSecurityException
-
finish
Finishes the process of distributed decryption/encryption of specific data.- Returns:
- The final Decrypted or Encrypted portion of data
- Throws:
PDFSecurityException
-