Bouncy Castle Cryptography Library 1.87

org.bouncycastle.crypto.test
Class CryptoServicesRegistrarPropertyTest

java.lang.Object
  extended byorg.bouncycastle.util.test.SimpleTest
      extended byorg.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.


Nested Class Summary
 
Nested classes inherited from class org.bouncycastle.util.test.SimpleTest
SimpleTest.TestExceptionOperation
 
Constructor Summary
CryptoServicesRegistrarPropertyTest()
           
 
Method Summary
 java.lang.String getName()
           
static void main(java.lang.String[] args)
           
 void performTest()
           
 
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
 

Constructor Detail

CryptoServicesRegistrarPropertyTest

public CryptoServicesRegistrarPropertyTest()
Method Detail

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)

Bouncy Castle Cryptography Library 1.87