public class CustomTrustList extends NativeObject
DataSource.CUSTOM_TRUST_LIST and can be set in the validation profile with profiles.Profile.setCustomTrustList.| Constructor | Description |
|---|---|
CustomTrustList() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addArchive(Stream stream) |
Add certificates from a PFX (PKCS#12) archive
|
void |
addArchive(Stream stream,
java.lang.String password) |
Add certificates from a PFX (PKCS#12) archive
|
void |
addCertificates(Stream certificate) |
Add one or more certificates
|
equals, hashCodepublic void addCertificates(Stream certificate) throws CorruptException
certificate - The sequence of certificates in either PEM (.pem, ASCII text) or DER (.cer, binary) formCorruptException - If the certificate is corrupt and cannot be readjava.lang.IllegalArgumentException - if certificate is nullpublic void addArchive(Stream stream) throws CorruptException, PasswordException
stream - The certificates in PKCS#12 format (.p12, .pfx)CorruptException - The PFX (PKCS#12) archive is corrupt and cannot be read.PasswordException - The password is invalid.java.lang.IllegalArgumentException - if stream is nullpublic void addArchive(Stream stream, java.lang.String password) throws CorruptException, PasswordException
stream - The certificates in PKCS#12 format (.p12, .pfx)password - The password required to decrypt the archive.CorruptException - The PFX (PKCS#12) archive is corrupt and cannot be read.PasswordException - The password is invalid.java.lang.IllegalArgumentException - if stream is null