|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itextpdf.text.pdf.security.CertificateVerifier
com.itextpdf.text.pdf.security.RootStoreVerifier
public class RootStoreVerifier
Verifies a certificate against a KeyStore
containing trusted anchors.
| Field Summary | |
|---|---|
protected static Logger |
LOGGER
The Logger instance |
protected KeyStore |
rootStore
A key store against which certificates can be verified. |
| Fields inherited from class com.itextpdf.text.pdf.security.CertificateVerifier |
|---|
onlineCheckingAllowed, verifier |
| Constructor Summary | |
|---|---|
RootStoreVerifier(CertificateVerifier verifier)
Creates a RootStoreVerifier in a chain of verifiers. |
|
| Method Summary | |
|---|---|
void |
setRootStore(KeyStore keyStore)
Sets the Key Store against which a certificate can be checked. |
List<VerificationOK> |
verify(X509Certificate signCert,
X509Certificate issuerCert,
Date signDate)
Verifies a single certificate against a key store (if present). |
| Methods inherited from class com.itextpdf.text.pdf.security.CertificateVerifier |
|---|
setOnlineCheckingAllowed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Logger LOGGER
protected KeyStore rootStore
| Constructor Detail |
|---|
public RootStoreVerifier(CertificateVerifier verifier)
verifier - the next verifier in the chain| Method Detail |
|---|
public void setRootStore(KeyStore keyStore)
keyStore - a root store
public List<VerificationOK> verify(X509Certificate signCert,
X509Certificate issuerCert,
Date signDate)
throws GeneralSecurityException,
IOException
verify in class CertificateVerifiersignCert - the certificate to verifyissuerCert - the issuer certificatesignDate - the date the certificate needs to be valid
VerificationOK objects.
The list will be empty if the certificate couldn't be verified.
GeneralSecurityException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||