au.gov.nehta.vendorlibrary.common.security
Class SimpleCertificateValidator
java.lang.Object
au.gov.nehta.vendorlibrary.common.security.SimpleCertificateValidator
- All Implemented Interfaces:
- au.gov.nehta.xsp.CertificateValidator
public class SimpleCertificateValidator
- extends java.lang.Object
- implements au.gov.nehta.xsp.CertificateValidator
A baseline non-null implementation of the security validator, intended to be extended
by implementors to add additional functionality.
The base check will cover certificate validiity and trust
Constructor Summary |
SimpleCertificateValidator(java.security.KeyStore truststore)
Initialise the validator with a keystore containing certificates considered to be trusted when
validating. |
Method Summary |
void |
validate(java.security.cert.X509Certificate cert)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleCertificateValidator
public SimpleCertificateValidator(java.security.KeyStore truststore)
- Initialise the validator with a keystore containing certificates considered to be trusted when
validating.
A Null truststore will indicate all certificates are trusted.
validate
public void validate(java.security.cert.X509Certificate cert)
throws au.gov.nehta.xsp.CertificateValidationException,
au.gov.nehta.xsp.XspException
- Specified by:
validate
in interface au.gov.nehta.xsp.CertificateValidator
- Throws:
au.gov.nehta.xsp.CertificateValidationException
au.gov.nehta.xsp.XspException