public class CertificateVerifier
extends java.lang.Object
CertificateVerifier
that is the next element in the chain of which the verify()
method will be called.Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
CertificateVerifier(CertificateVerifier verifier)
Creates the final CertificateVerifier in a chain of verifiers.
|
Modifier and Type | Method and Description |
---|---|
void |
setOnlineCheckingAllowed(boolean onlineCheckingAllowed)
Decide whether or not online checking is allowed.
|
java.util.List<VerificationOK> |
verify(java.security.cert.X509Certificate signCert,
java.security.cert.X509Certificate issuerCert,
java.util.Date signDate)
Checks the validity of the certificate, and calls the next
verifier in the chain, if any.
|
protected CertificateVerifier verifier
protected boolean onlineCheckingAllowed
public CertificateVerifier(CertificateVerifier verifier)
verifier
- the previous verifier in the chainpublic void setOnlineCheckingAllowed(boolean onlineCheckingAllowed)
onlineCheckingAllowed
- public java.util.List<VerificationOK> verify(java.security.cert.X509Certificate signCert, java.security.cert.X509Certificate issuerCert, java.util.Date signDate) throws java.security.GeneralSecurityException, java.io.IOException
signCert
- the certificate that needs to be checkedissuerCert
- its issuersignDate
- the date the certificate needs to be validVerificationOK
objects.
The list will be empty if the certificate couldn't be verified.java.security.GeneralSecurityException
java.io.IOException
Copyright © 2013. All Rights Reserved.