Interface EncryptionHandlerState
-
public interface EncryptionHandlerStateObject 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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]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 Detail
-
DECRYPT
static final int DECRYPT
- See Also:
- Constant Field Values
-
ENCRYPT
static final int ENCRYPT
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
byte[] init(byte[] buffer, int start, int len, byte[] keyAddition, int mode) throws PDFSecurityException- Throws:
PDFSecurityException
-
update
byte[] update(byte[] buffer, int start, int len) throws PDFSecurityExceptionContinues 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
byte[] finish() throws PDFSecurityExceptionFinishes the process of distributed decryption/encryption of specific data.- Returns:
- The final Decrypted or Encrypted portion of data
- Throws:
PDFSecurityException
-
-