public class LtvVerification
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
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 | Description |
|---|---|
LtvVerification(PdfStamper stp) |
The verification constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addVerification(java.lang.String signatureName,
OcspClient ocsp,
CrlClient crl,
LtvVerification.CertificateOption certOption,
LtvVerification.Level level,
LtvVerification.CertificateInclusion certInclude) |
Add verification for a particular signature
|
boolean |
addVerification(java.lang.String signatureName,
java.util.Collection<byte[]> ocsps,
java.util.Collection<byte[]> crls,
java.util.Collection<byte[]> certs) |
Alternative addVerification.
|
void |
merge() |
Merges the validation with any validation already in the document or creates
a new one.
|
public LtvVerification(PdfStamper stp)
stp - the PdfStamper to apply the validation topublic boolean addVerification(java.lang.String signatureName,
OcspClient ocsp,
CrlClient crl,
LtvVerification.CertificateOption certOption,
LtvVerification.Level level,
LtvVerification.CertificateInclusion certInclude)
throws java.io.IOException,
java.security.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 - java.security.GeneralSecurityExceptionjava.io.IOExceptionpublic boolean addVerification(java.lang.String signatureName,
java.util.Collection<byte[]> ocsps,
java.util.Collection<byte[]> crls,
java.util.Collection<byte[]> certs)
throws java.io.IOException,
java.security.GeneralSecurityException
java.io.IOExceptionjava.security.GeneralSecurityExceptionpublic void merge()
throws java.io.IOException
java.io.IOExceptionCopyright © 1998–2018. All rights reserved.