Package com.itextpdf.signatures
Interface IExternalSignatureContainer
-
- All Known Implementing Classes:
ExternalBlankSignatureContainer
,PKCS7ExternalSignatureContainer
public interface IExternalSignatureContainer
Interface to sign a document. The signing is fully done externally, including the container composition.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
modifySigningDictionary(PdfDictionary signDic)
Modifies the signature dictionary to suit the container.byte[]
sign(java.io.InputStream data)
Produces the container with the signature.
-
-
-
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 keysPdfName.Filter
andPdfName.SubFilter
will have to be set.- Parameters:
signDic
- the signature dictionary
-
-