org.bouncycastle.asn1.test
Class EmptyExtensionSequenceTest
java.lang.Object
org.bouncycastle.util.test.SimpleTest
org.bouncycastle.asn1.test.EmptyExtensionSequenceTest
- All Implemented Interfaces:
- Test
- public class EmptyExtensionSequenceTest
- extends SimpleTest
Several X.509 extension values are defined as SEQUENCE SIZE (1..MAX) by RFC 5280, so an empty
SEQUENCE is malformed and must be rejected with a clean IllegalArgumentException on the parse
path (matching the existing AuthorityInformationAccess / NameConstraints behaviour) rather than
being accepted and yielding a degenerate, empty extension. Relates to github #2331.
| 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 |
EmptyExtensionSequenceTest
public EmptyExtensionSequenceTest()
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)