|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.itextpdf.text.pdf.security.LtvVerification
public class LtvVerification
Add verification according to PAdES-LTV (part 4)
Nested Class Summary | |
---|---|
static class |
LtvVerification.CertificateInclusion
Certificate inclusion in the DSS and VRI dictionaries in the CERT and CERTS keys |
static class |
LtvVerification.CertificateOption
Options for how many certificates to include |
static class |
LtvVerification.Level
What type of verification to include |
Constructor Summary | |
---|---|
LtvVerification(PdfStamper stp)
The verification constructor. |
Method Summary | |
---|---|
boolean |
addVerification(String signatureName,
Collection<byte[]> ocsps,
Collection<byte[]> crls,
Collection<byte[]> certs)
Alternative addVerification. |
boolean |
addVerification(String signatureName,
OcspClient ocsp,
CrlClient crl,
LtvVerification.CertificateOption certOption,
LtvVerification.Level level,
LtvVerification.CertificateInclusion certInclude)
Add verification for a particular signature |
void |
merge()
Merges the validation with any validation already in the document or creates a new one. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LtvVerification(PdfStamper stp)
stp
- the PdfStamper to apply the validation toMethod Detail |
---|
public boolean addVerification(String signatureName, OcspClient ocsp, CrlClient crl, LtvVerification.CertificateOption certOption, LtvVerification.Level level, LtvVerification.CertificateInclusion certInclude) throws IOException, GeneralSecurityException
signatureName
- the signature to validate (it may be a timestamp)ocsp
- the interface to get the OCSPcrl
- the interface to get the CRLcertOption
- level
- the validation options to includecertInclude
-
GeneralSecurityException
IOException
public boolean addVerification(String signatureName, Collection<byte[]> ocsps, Collection<byte[]> crls, Collection<byte[]> certs) throws IOException, GeneralSecurityException
IOException
GeneralSecurityException
public void merge() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |