Bouncy Castle Cryptography Library 1.85

org.bouncycastle.asn1.test
Class AllowNonDerTimeTest

java.lang.Object
  extended byorg.bouncycastle.util.test.SimpleTest
      extended byorg.bouncycastle.asn1.test.AllowNonDerTimeTest
All Implemented Interfaces:
Test

public class AllowNonDerTimeTest
extends SimpleTest

Exercises the org.bouncycastle.asn1.allow_non_der_time property (Properties.ASN1_ALLOW_NON_DER_TIME). Reading is always lenient: a non-DER UTCTime or GeneralizedTime on the wire is always parseable. The property only governs DER serialization: default ("true"/unset) preserves the historical pass-through, while "false" makes any attempt to write a non-DER time to a DEROutputStream fail per X.690 sec. 11.7 / 11.8 (github #1973 / #1986).


Nested Class Summary
 
Nested classes inherited from class org.bouncycastle.util.test.SimpleTest
SimpleTest.TestExceptionOperation
 
Constructor Summary
AllowNonDerTimeTest()
           
 
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

AllowNonDerTimeTest

public AllowNonDerTimeTest()
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.85