public class ExternalBlankSignatureContainer extends Object implements IExternalSignatureContainer
Constructor and Description |
---|
ExternalBlankSignatureContainer(PdfDictionary sigDic)
Creates an ExternalBlankSignatureContainer.
|
ExternalBlankSignatureContainer(PdfName filter, PdfName subFilter)
Creates an ExternalBlankSignatureContainer.
|
Modifier and Type | Method and Description |
---|---|
void |
modifySigningDictionary(PdfDictionary signDic)
Modifies the signature dictionary to suit the container.
|
byte[] |
sign(InputStream data)
Produces the container with the signature.
|
public ExternalBlankSignatureContainer(PdfDictionary sigDic)
sigDic
- PdfDictionary containing signature iformation. /SubFilter and /Filter aren't set in this constructor.
public ExternalBlankSignatureContainer(PdfName filter, PdfName subFilter)
filter
- PdfName of the signature handler to use when validating this signature
subFilter
- PdfName that describes the encoding of the signature
public byte[] sign(InputStream data) throws GeneralSecurityException
IExternalSignatureContainer
sign
in interface IExternalSignatureContainer
data
- the data to sign
GeneralSecurityException
- the general security exception
public void modifySigningDictionary(PdfDictionary signDic)
IExternalSignatureContainer
PdfName.Filter
and PdfName.SubFilter
will have to be set.
modifySigningDictionary
in interface IExternalSignatureContainer
signDic
- the signature dictionary
Copyright © 1998–2023 iText Group NV. All rights reserved.