Class StandaloneMacIntegrityProtector

java.lang.Object
com.itextpdf.kernel.mac.AbstractMacIntegrityProtector
com.itextpdf.kernel.mac.StandaloneMacIntegrityProtector

class StandaloneMacIntegrityProtector extends AbstractMacIntegrityProtector
Class responsible for integrity protection in encrypted documents, which uses MAC container in the standalone mode.
  • Field Details

  • Constructor Details

  • Method Details

    • prepareDocument

      void prepareDocument()
    • embedMacContainerInTrailer

      private void embedMacContainerInTrailer() throws IOException
      Throws:
      IOException
    • createDocumentDigestAndMacContainer

      private byte[] createDocumentDigestAndMacContainer(byte[] documentBytes, long[] byteRange) throws IOException
      Throws:
      IOException
    • getContainerSizeEstimate

      private int getContainerSizeEstimate()
    • getDocumentByteArrayOutputStream

      private ByteArrayOutputStream getDocumentByteArrayOutputStream()