|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.openoces.ooapi.cert.EmployeeOcesCertificateTest
This class implements junit tests specific to OCES employee certificates
| Field Summary | |
protected EmployeeOcesCertificate |
c
|
protected java.security.cert.X509Certificate |
employeeCertificate
|
| Constructor Summary | |
EmployeeOcesCertificateTest()
|
|
| Method Summary | |
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testConstruction()
|
void |
testCustomRid()
|
void |
testEmployeeOcesIdExtraction()
|
void |
testExtractedRid()
|
void |
testExtractedSubjectDN()
|
void |
testOcesIdExtraction()
|
void |
testVerification()
|
| 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 |
protected java.security.cert.X509Certificate employeeCertificate
protected EmployeeOcesCertificate c
| Constructor Detail |
public EmployeeOcesCertificateTest()
| Method Detail |
public void testConstruction()
public void testOcesIdExtraction()
throws NonOcesCertificateException
NonOcesCertificateException
public void testEmployeeOcesIdExtraction()
throws NonOcesCertificateException
NonOcesCertificateException
public void testVerification()
throws SignatureVerificationException,
CertificateHasExpiredException,
InternalException,
CertificateIsNotYetValidException,
CertificateRevokedException,
CRLExpiredException,
CRLNotYetValidException
SignatureVerificationException
CertificateHasExpiredException
InternalException
CertificateIsNotYetValidException
CertificateRevokedException
CRLExpiredException
CRLNotYetValidException
public void testCustomRid()
throws NonOcesCertificateException,
InternalException
NonOcesCertificateException
InternalException
public void testExtractedRid()
throws NonOcesCertificateException,
InternalException
NonOcesCertificateException
InternalExceptionpublic void testExtractedSubjectDN()
protected void setUp()
throws java.security.cert.CertificateException,
java.io.IOException,
java.security.cert.CRLException,
CRLExpiredException,
CRLNotYetValidException
java.security.cert.CertificateException
java.io.IOException
java.security.cert.CRLException
CRLExpiredException
CRLNotYetValidExceptionprotected void tearDown()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||