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<byte[]> ocsps,
Collection<byte[]> crls,
Collection<byte[]> certs)
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 usepublic 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 OCSPcrl - the interface to get the CRLcertOption - options as to how many certificates to includelevel - the validation options to includecertInclude - certificate inclusion optionsGeneralSecurityException - when requested cryptographic algorithm or security provider
is not availableIOException - signals that an I/O exception has occurredpublic boolean addVerification(String signatureName, Collection<byte[]> ocsps, Collection<byte[]> crls, Collection<byte[]> certs) throws IOException, GeneralSecurityException
signatureName - name of the signatureocsps - collection of DER-encoded BasicOCSPResponsescrls - collection of DER-encoded CRLscerts - collection of DER-encoded certificatesIOException - signals that an I/O exception has occurredGeneralSecurityException - when requested cryptographic algorithm or security provider
is not availablepublic void merge()
public static String convertToHex(byte[] bytes)
bytes - a byte arrayCopyright © 1998–2023 Apryse Group NV. All rights reserved.