|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.itextpdf.text.pdf.security.CertificateVerifier
public class CertificateVerifier
Superclass for a series of certificate verifiers that will typically
be used in a chain. It wraps another CertificateVerifier
that is the next element in the chain of which the verify()
method will be called.
Field Summary | |
---|---|
protected boolean |
onlineCheckingAllowed
Indicates if going online to verify a certificate is allowed. |
protected CertificateVerifier |
verifier
The previous CertificateVerifier in the chain of verifiers. |
Constructor Summary | |
---|---|
CertificateVerifier(CertificateVerifier verifier)
Creates the final CertificateVerifier in a chain of verifiers. |
Method Summary | |
---|---|
void |
setOnlineCheckingAllowed(boolean onlineCheckingAllowed)
Decide whether or not online checking is allowed. |
List<VerificationOK> |
verify(X509Certificate signCert,
X509Certificate issuerCert,
Date signDate)
Checks the validity of the certificate, and calls the next verifier in the chain, if any. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected CertificateVerifier verifier
protected boolean onlineCheckingAllowed
Constructor Detail |
---|
public CertificateVerifier(CertificateVerifier verifier)
verifier
- the previous verifier in the chainMethod Detail |
---|
public void setOnlineCheckingAllowed(boolean onlineCheckingAllowed)
onlineCheckingAllowed
- public List<VerificationOK> verify(X509Certificate signCert, X509Certificate issuerCert, Date signDate) throws GeneralSecurityException, IOException
signCert
- the certificate that needs to be checkedissuerCert
- its issuersignDate
- 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 |