org.openoces.ooapi.validation.cert
Class RevocationCheckerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.openoces.ooapi.validation.cert.RevocationCheckerTest
All Implemented Interfaces:
junit.framework.Test

public class RevocationCheckerTest
extends junit.framework.TestCase


Field Summary
protected  PersonalOcesCertificate cYouth
           
protected  java.security.cert.X509Certificate personalYouthCertificate
           
 
Constructor Summary
RevocationCheckerTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testCheckRevocationOfNonRevokedCertificateUsingFullCRL()
           
 void testCheckRevocationOfNonRevokedCertificateUsingOCSP()
           
 void testCheckRevocationOfNonRevokedCertificateUsingPartitionedCRL()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

personalYouthCertificate

protected java.security.cert.X509Certificate personalYouthCertificate

cYouth

protected PersonalOcesCertificate cYouth
Constructor Detail

RevocationCheckerTest

public RevocationCheckerTest()
Method Detail

testCheckRevocationOfNonRevokedCertificateUsingPartitionedCRL

public void testCheckRevocationOfNonRevokedCertificateUsingPartitionedCRL()
                                                                   throws CRLExpiredException,
                                                                          CRLNotYetValidException,
                                                                          InternalException,
                                                                          SignatureVerificationException
Throws:
CRLExpiredException
CRLNotYetValidException
InternalException
SignatureVerificationException

testCheckRevocationOfNonRevokedCertificateUsingFullCRL

public void testCheckRevocationOfNonRevokedCertificateUsingFullCRL()
                                                            throws CRLExpiredException,
                                                                   CRLNotYetValidException,
                                                                   InternalException
Throws:
CRLExpiredException
CRLNotYetValidException
InternalException

testCheckRevocationOfNonRevokedCertificateUsingOCSP

public void testCheckRevocationOfNonRevokedCertificateUsingOCSP()
                                                         throws CRLExpiredException,
                                                                CRLNotYetValidException,
                                                                InternalException
Throws:
CRLExpiredException
CRLNotYetValidException
InternalException

setUp

protected void setUp()
              throws java.security.cert.CertificateException,
                     java.io.IOException,
                     java.security.cert.CRLException,
                     CRLExpiredException,
                     CRLNotYetValidException
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.security.cert.CertificateException
java.io.IOException
java.security.cert.CRLException
CRLExpiredException
CRLNotYetValidException

tearDown

protected void tearDown()
Overrides:
tearDown in class junit.framework.TestCase