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
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    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

  • Method Details

    • 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 PDFSecurityException
      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

      byte[] finish() throws PDFSecurityException
      Finishes the process of distributed decryption/encryption of specific data.
      Returns:
      The final Decrypted or Encrypted portion of data
      Throws:
      PDFSecurityException