org.bouncycastle.crypto.test
Class CryptoServicesRegistrarPropertyTest
java.lang.Object
org.bouncycastle.util.test.SimpleTest
org.bouncycastle.crypto.test.CryptoServicesRegistrarPropertyTest
- All Implemented Interfaces:
- Test
- public class CryptoServicesRegistrarPropertyTest
- extends SimpleTest
Regression test for the thread and global properties of CryptoServicesRegistrar. Setting a
global property used to copy the value onto the calling thread as well, so the thread that ran
the class's static initializer kept the default DSA and DH parameters, and with them the class
loader that loaded Bouncy Castle, for as long as it lived (github #2536). A global value is now
only copied onto a thread that already has a value of its own for the property.
| Methods inherited from class org.bouncycastle.util.test.SimpleTest |
areEqual, areEqual, areEqual, fail, fail, fail, isEquals, isEquals, isEquals, isEquals, isEquals, isEquals, isEquals, isTrue, isTrue, perform, runTest, runTest, runTests, runTests, testException |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CryptoServicesRegistrarPropertyTest
public CryptoServicesRegistrarPropertyTest()
getName
public java.lang.String getName()
- Specified by:
getName in interface Test- Specified by:
getName in class SimpleTest
performTest
public void performTest()
throws java.lang.Exception
- Specified by:
performTest in class SimpleTest
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)