Package com.pdftools.signaturevalidation
Class CustomTrustList
- java.lang.Object
-
- com.pdftools.internal.NativeBase
-
- com.pdftools.internal.NativeObject
-
- com.pdftools.signaturevalidation.CustomTrustList
-
public class CustomTrustList extends NativeObject
The custom collection of trusted certificates
This class defines a custom collection of trusted certificates. They define the certificates used forDataSource.CUSTOM_TRUST_LIST
and can be set in the validation profile withprofiles.Profile.setCustomTrustList
.
-
-
Constructor Summary
Constructors Constructor Description CustomTrustList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addArchive(Stream stream)
Add certificates from a PFX (PKCS#12) archivevoid
addArchive(Stream stream, java.lang.String password)
Add certificates from a PFX (PKCS#12) archivevoid
addCertificates(Stream certificate)
Add one or more certificates-
Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
addCertificates
public void addCertificates(Stream certificate) throws CorruptException
Add one or more certificates
Add certificates to the trust list.- Parameters:
certificate
- The sequence of certificates in either PEM (.pem, ASCII text) or DER (.cer, binary) form- Throws:
CorruptException
- If the certificate is corrupt and cannot be readjava.lang.IllegalArgumentException
- ifcertificate
isnull
-
addArchive
public void addArchive(Stream stream) throws CorruptException, PasswordException
Add certificates from a PFX (PKCS#12) archive
Add certificates to the trust list.- Parameters:
stream
- The certificates in PKCS#12 format (.p12, .pfx)- Throws:
CorruptException
- The PFX (PKCS#12) archive is corrupt and cannot be read.PasswordException
- The password is invalid.java.lang.IllegalArgumentException
- ifstream
isnull
-
addArchive
public void addArchive(Stream stream, java.lang.String password) throws CorruptException, PasswordException
Add certificates from a PFX (PKCS#12) archive
Add certificates to the trust list.- Parameters:
stream
- The certificates in PKCS#12 format (.p12, .pfx)password
- The password required to decrypt the archive.- Throws:
CorruptException
- The PFX (PKCS#12) archive is corrupt and cannot be read.PasswordException
- The password is invalid.java.lang.IllegalArgumentException
- ifstream
isnull
-
-