au.gov.nehta.vendorlibrary.pcehr.clients.common.util
Class MinimalCertificateVerifier

java.lang.Object
  extended by au.gov.nehta.vendorlibrary.pcehr.clients.common.util.MinimalCertificateVerifier
All Implemented Interfaces:
au.gov.nehta.xsp.CertificateVerifier

public class MinimalCertificateVerifier
extends java.lang.Object
implements au.gov.nehta.xsp.CertificateVerifier

Certificate verifier implementation that performs some basic verification of the certificate. The sample is provided for illustrative purposes only and should be implemented in production.


Constructor Summary
MinimalCertificateVerifier()
           
 
Method Summary
 void verify(java.security.cert.X509Certificate certificate)
          Example certificate verification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinimalCertificateVerifier

public MinimalCertificateVerifier()
Method Detail

verify

public final void verify(java.security.cert.X509Certificate certificate)
                  throws au.gov.nehta.xsp.CertificateVerificationException,
                         au.gov.nehta.xsp.XspException
Example certificate verification.

Specified by:
verify in interface au.gov.nehta.xsp.CertificateVerifier
Parameters:
certificate - Certificate to verify.
Throws:
au.gov.nehta.xsp.CertificateVerificationException - Thrown in the event of a verification failure.
au.gov.nehta.xsp.XspException - Thrown in the event of a verification failure.