|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.itextpdf.text.pdf.security.MakeSignature
public class MakeSignature
Class that signs your PDF.
Field Summary | |
---|---|
static boolean |
CADES
Parameter to indicate that you want to sign using CMS Advanced Electronic Signatures. |
static boolean |
CMS
Parameter to indicate that you want to sign using the Cryptographic Message Syntax. |
Constructor Summary | |
---|---|
MakeSignature()
|
Method Summary | |
---|---|
static Collection<byte[]> |
processCrl(Certificate cert,
Collection<CrlClient> crlList)
Processes a CRL list. |
static void |
signDetached(PdfSignatureAppearance sap,
ExternalSignature externalSignature,
Certificate[] chain,
Collection<CrlClient> crlList,
OcspClient ocspClient,
TSAClient tsaClient,
String provider,
int estimatedSize,
boolean cades)
Signs the document using the detached mode, CMS or CAdES equivalent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean CMS
public static final boolean CADES
Constructor Detail |
---|
public MakeSignature()
Method Detail |
---|
public static void signDetached(PdfSignatureAppearance sap, ExternalSignature externalSignature, Certificate[] chain, Collection<CrlClient> crlList, OcspClient ocspClient, TSAClient tsaClient, String provider, int estimatedSize, boolean cades) throws IOException, DocumentException, GeneralSecurityException
sap
- the PdfSignatureAppearanceexternalSignature
- the interface providing the actual signingchain
- the certificate chaincrlList
- the CRL listocspClient
- the OCSP clienttsaClient
- the Timestamp clientprovider
- the provider or nullestimatedSize
- the reserved size for the signature. It will be estimated if 0cades
- true to sign CAdES equivalent PAdES-BES, false to sign CMS
DocumentException
IOException
GeneralSecurityException
NoSuchAlgorithmException
Exception
public static Collection<byte[]> processCrl(Certificate cert, Collection<CrlClient> crlList)
cert
- a Certificate if one of the CrlList implementations needs to retrieve the CRL URL from it.crlList
- a list of CrlClient implementations
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |