public class LtvVerification extends Object
Modifier and Type | Class and 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 and Description |
---|
LtvVerification(PdfDocument document)
The verification constructor.
|
LtvVerification(PdfDocument document, String securityProviderCode)
The verification constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addVerification(String signatureName, Collection
Adds verification to the signature.
|
boolean |
addVerification(String signatureName, IOcspClient ocsp, ICrlClient crl, LtvVerification.CertificateOption certOption, LtvVerification.Level level, LtvVerification.CertificateInclusion certInclude)
Add verification for a particular signature.
|
static String |
convertToHex(byte[] bytes)
Converts an array of bytes to a String of hexadecimal values
|
void |
merge()
Merges the validation with any validation already in the document or creates a new one.
|
public LtvVerification(PdfDocument document)
document
- The PdfDocument
to apply the validation to.
public LtvVerification(PdfDocument document, String securityProviderCode)
document
- The PdfDocument
to apply the validation to.
securityProviderCode
- Security provider to use
public boolean addVerification(String signatureName, IOcspClient ocsp, ICrlClient 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 OCSP
crl
- the interface to get the CRL
certOption
- options as to how many certificates to include
level
- the validation options to include
certInclude
- certificate inclusion options
GeneralSecurityException
IOException
public boolean addVerification(String signatureName, Collectionocsps, Collection crls, Collection certs) throws IOException, GeneralSecurityException
signatureName
- name of the signature
ocsps
- collection of ocsp responses
crls
- collection of crls
certs
- collection of certificates
IOException
GeneralSecurityException
public void merge() throws IOException
IOException
public static String convertToHex(byte[] bytes)
bytes
- a byte array
Copyright © 1998–2018 iText Group NV. All rights reserved.