pk.edu.niit.clarens.test
Class PEMBlockTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bypk.edu.niit.clarens.test.PEMBlockTest
All Implemented Interfaces:
junit.framework.Test

public class PEMBlockTest
extends junit.framework.TestCase

Test the static methods used to create generic PEMBlock instances.

See Also:
PEMBlock

Constructor Summary
PEMBlockTest(java.lang.String s)
          Create a named test case.
 
Method Summary
 void testPkcs8PrivateKeyReader()
          Load an PKCS#8 private key from an input reader.
 void testPkcs8PrivateKeyString()
          Load an PKCS#8 private key from a string.
 void testTraditionalPrivateKeyReader()
          Load an openssl traditional private key from an input reader.
 void testTraditionalPrivateKeyString()
          Load an openssl traditional private key from a string.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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
 

Constructor Detail

PEMBlockTest

public PEMBlockTest(java.lang.String s)
Create a named test case.

Parameters:
s - The name of the test to construct.
Method Detail

testPkcs8PrivateKeyReader

public void testPkcs8PrivateKeyReader()
                               throws java.lang.Exception
Load an PKCS#8 private key from an input reader.

Throws:
java.lang.Exception - Any thrown exceptions will cause the test to fail.

testTraditionalPrivateKeyReader

public void testTraditionalPrivateKeyReader()
                                     throws java.lang.Exception
Load an openssl traditional private key from an input reader.

Throws:
java.lang.Exception - Any thrown exceptions will cause the test to fail.

testPkcs8PrivateKeyString

public void testPkcs8PrivateKeyString()
                               throws java.lang.Exception
Load an PKCS#8 private key from a string.

Throws:
java.lang.Exception - Any thrown exceptions will cause the test to fail.

testTraditionalPrivateKeyString

public void testTraditionalPrivateKeyString()
                                     throws java.lang.Exception
Load an openssl traditional private key from a string.

Throws:
java.lang.Exception - Any thrown exceptions will cause the test to fail.