org.bouncycastle.asn1.test
Class AllowNonDerTimeTest
java.lang.Object
org.bouncycastle.util.test.SimpleTest
org.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).
| 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 |
AllowNonDerTimeTest
public AllowNonDerTimeTest()
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)