Interface IExternalSignatureContainer

    • Method Detail

      • sign

        byte[] sign​(java.io.InputStream data)
             throws java.security.GeneralSecurityException
        Produces the container with the signature.
        Parameters:
        data - the data to sign
        Returns:
        a container with the signature and other objects, like CRL and OCSP. The container will generally be a PKCS7 one.
        Throws:
        java.security.GeneralSecurityException - the general security exception
      • modifySigningDictionary

        void modifySigningDictionary​(PdfDictionary signDic)
        Modifies the signature dictionary to suit the container. At least the keys PdfName.Filter and PdfName.SubFilter will have to be set.
        Parameters:
        signDic - the signature dictionary