org.openuat.channel.test
Class X509CertificateGeneratorTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.openuat.channel.test.X509CertificateGeneratorTest
- All Implemented Interfaces:
- junit.framework.Test
- Direct Known Subclasses:
- X509CertificateGeneratorTest_NoJCE
public class X509CertificateGeneratorTest
- extends junit.framework.TestCase
|
Field Summary |
protected boolean |
useBCAPI
|
| 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 |
useBCAPI
protected boolean useBCAPI
X509CertificateGeneratorTest
public X509CertificateGeneratorTest()
setUp
protected void setUp()
throws java.lang.Exception
- Overrides:
setUp in class junit.framework.TestCase
- Throws:
java.lang.Exception
tearDown
protected void tearDown()
throws java.lang.Exception
- Overrides:
tearDown in class junit.framework.TestCase
- Throws:
java.lang.Exception
testConstructorParameterCheck1
public void testConstructorParameterCheck1()
throws java.io.IOException,
java.security.InvalidKeyException,
java.security.NoSuchAlgorithmException,
java.security.cert.CertificateException,
java.security.NoSuchProviderException,
java.security.SignatureException
- Throws:
java.io.IOException
java.security.InvalidKeyException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
java.security.NoSuchProviderException
java.security.SignatureException
testConstructorParameterCheck2
public void testConstructorParameterCheck2()
throws java.io.IOException,
java.security.InvalidKeyException,
java.security.NoSuchAlgorithmException,
java.security.cert.CertificateException,
java.security.NoSuchProviderException,
java.security.SignatureException
- Throws:
java.io.IOException
java.security.InvalidKeyException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
java.security.NoSuchProviderException
java.security.SignatureException
testConstructorParameterCheck3
public void testConstructorParameterCheck3()
throws java.io.IOException,
java.security.InvalidKeyException,
java.security.NoSuchAlgorithmException,
java.security.cert.CertificateException,
java.security.NoSuchProviderException,
java.security.SignatureException
- Throws:
java.io.IOException
java.security.InvalidKeyException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
java.security.NoSuchProviderException
java.security.SignatureException
testCreateCaAndCertificate
public void testCreateCaAndCertificate()
throws java.security.InvalidKeyException,
java.security.KeyStoreException,
java.security.NoSuchAlgorithmException,
java.security.cert.CertificateException,
java.io.FileNotFoundException,
java.security.NoSuchProviderException,
java.security.SignatureException,
java.io.IOException,
org.bouncycastle.crypto.DataLengthException,
java.lang.SecurityException,
java.security.spec.InvalidKeySpecException,
org.bouncycastle.crypto.CryptoException
- Throws:
java.security.InvalidKeyException
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
java.io.FileNotFoundException
java.security.NoSuchProviderException
java.security.SignatureException
java.io.IOException
org.bouncycastle.crypto.DataLengthException
java.lang.SecurityException
java.security.spec.InvalidKeySpecException
org.bouncycastle.crypto.CryptoException
2005-2006, Rene Mayrhofer.