org.openoces.ooapi.cert
Class OcesCertificateFactoryTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.openoces.ooapi.cert.OcesCertificateFactoryTest
All Implemented Interfaces:
junit.framework.Test

public class OcesCertificateFactoryTest
extends junit.framework.TestCase


Field Summary
protected  EmployeeOcesCertificate cEmployee
           
protected  PersonalOcesCertificate cOrganizational
           
protected  PersonalOcesCertificate cPersonal
           
protected  PersonalOcesCertificate cPersonalYouth
           
protected  java.security.cert.X509Certificate employeeCertificate
           
protected  java.security.cert.X509Certificate organizationalCertificate
           
protected  java.security.cert.X509Certificate personalCertificate
           
protected  java.security.cert.X509Certificate personalYouthCertificate
           
 
Constructor Summary
OcesCertificateFactoryTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testGenerationOfEmployeeCertificate()
           
 void testGenerationOfEmployeeCertificateInTestEnv()
           
 void testGenerationOfNonOcesCertificate()
           
 void testGenerationOfOcesCertificateFromDEREncoding()
           
 void testGenerationOfOcesCertificateFromObject()
           
 void testGenerationOfOrganizationalCertificate()
           
 void testGenerationOfPersonalCertificate()
           
 void testGenerationOfPersonalCertificate2()
           
 void testGenerationOfPersonalCertificateInSystemtestEnv()
           
 void testGenerationOfPersonalCertificateInTestEnv()
           
 void testGenerationOfPersonalYouthCertificate()
           
 
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

personalCertificate

protected java.security.cert.X509Certificate personalCertificate

employeeCertificate

protected java.security.cert.X509Certificate employeeCertificate

personalYouthCertificate

protected java.security.cert.X509Certificate personalYouthCertificate

organizationalCertificate

protected java.security.cert.X509Certificate organizationalCertificate

cPersonal

protected PersonalOcesCertificate cPersonal

cEmployee

protected EmployeeOcesCertificate cEmployee

cPersonalYouth

protected PersonalOcesCertificate cPersonalYouth

cOrganizational

protected PersonalOcesCertificate cOrganizational
Constructor Detail

OcesCertificateFactoryTest

public OcesCertificateFactoryTest()
Method Detail

testGenerationOfPersonalYouthCertificate

public void testGenerationOfPersonalYouthCertificate()
                                              throws SignatureVerificationException,
                                                     NonOcesCertificateException,
                                                     InternalException
Throws:
SignatureVerificationException
NonOcesCertificateException
InternalException

testGenerationOfOrganizationalCertificate

public void testGenerationOfOrganizationalCertificate()
                                               throws SignatureVerificationException,
                                                      NonOcesCertificateException,
                                                      InternalException
Throws:
SignatureVerificationException
NonOcesCertificateException
InternalException

testGenerationOfNonOcesCertificate

public void testGenerationOfNonOcesCertificate()
                                        throws InternalException,
                                               SignatureVerificationException
Throws:
InternalException
SignatureVerificationException

testGenerationOfOcesCertificateFromDEREncoding

public void testGenerationOfOcesCertificateFromDEREncoding()
                                                    throws java.security.cert.CertificateException,
                                                           SignatureVerificationException,
                                                           NonOcesCertificateException,
                                                           InternalException
Throws:
java.security.cert.CertificateException
SignatureVerificationException
NonOcesCertificateException
InternalException

testGenerationOfOcesCertificateFromObject

public void testGenerationOfOcesCertificateFromObject()
                                               throws java.security.cert.CertificateException,
                                                      SignatureVerificationException,
                                                      NonOcesCertificateException,
                                                      InternalException
Throws:
java.security.cert.CertificateException
SignatureVerificationException
NonOcesCertificateException
InternalException

testGenerationOfEmployeeCertificate

public void testGenerationOfEmployeeCertificate()
                                         throws InternalException,
                                                NonOcesCertificateException,
                                                SignatureVerificationException
Throws:
InternalException
NonOcesCertificateException
SignatureVerificationException

testGenerationOfPersonalCertificateInTestEnv

public void testGenerationOfPersonalCertificateInTestEnv()
                                                  throws InternalException,
                                                         NonOcesCertificateException,
                                                         SignatureVerificationException
Throws:
InternalException
NonOcesCertificateException
SignatureVerificationException

testGenerationOfEmployeeCertificateInTestEnv

public void testGenerationOfEmployeeCertificateInTestEnv()
                                                  throws InternalException,
                                                         NonOcesCertificateException,
                                                         SignatureVerificationException
Throws:
InternalException
NonOcesCertificateException
SignatureVerificationException

testGenerationOfPersonalCertificateInSystemtestEnv

public void testGenerationOfPersonalCertificateInSystemtestEnv()
                                                        throws InternalException,
                                                               NonOcesCertificateException,
                                                               SignatureVerificationException
Throws:
InternalException
NonOcesCertificateException
SignatureVerificationException

testGenerationOfPersonalCertificate

public void testGenerationOfPersonalCertificate()
                                         throws InternalException,
                                                NonOcesCertificateException,
                                                SignatureVerificationException
Throws:
InternalException
NonOcesCertificateException
SignatureVerificationException

testGenerationOfPersonalCertificate2

public void testGenerationOfPersonalCertificate2()
                                          throws InternalException,
                                                 NonOcesCertificateException,
                                                 SignatureVerificationException
Throws:
InternalException
NonOcesCertificateException
SignatureVerificationException

setUp

protected void setUp()
              throws java.security.cert.CertificateException
Throws:
java.security.cert.CertificateException

tearDown

protected void tearDown()