org.bouncycastle.jce.provider.test.nist
Class NistCertPathTest
java.lang.Object
TestCase
org.bouncycastle.jce.provider.test.nist.NistCertPathTest
public class NistCertPathTest
- extends TestCase
NIST CertPath test data for RFC 3280
Method Summary |
private void |
doExceptionTest(java.lang.String trustAnchor,
java.lang.String[] certs,
java.lang.String[] crls,
int index,
java.lang.String message)
|
private void |
doExceptionTest(java.lang.String trustAnchor,
java.lang.String[] certs,
java.lang.String[] crls,
java.util.Set policies,
int index,
java.lang.String message)
|
private java.security.cert.PKIXCertPathValidatorResult |
doTest(java.lang.String trustAnchor,
java.lang.String[] certs,
java.lang.String[] crls)
|
private java.security.cert.PKIXCertPathValidatorResult |
doTest(java.lang.String trustAnchor,
java.lang.String[] certs,
java.lang.String[] crls,
java.util.Set policies)
|
private java.lang.String |
getPkitsHome()
|
private java.security.cert.TrustAnchor |
getTrustAnchor(java.lang.String trustAnchorName)
|
private java.security.cert.X509Certificate |
loadCert(java.lang.String certName)
|
private java.security.cert.X509CRL |
loadCrl(java.lang.String crlName)
|
static void |
main(java.lang.String[] args)
|
void |
setUp()
|
static Test |
suite()
|
void |
testAllCertificatesAnyPolicyTest11()
|
void |
testAllCertificatesNoPoliciesTest2()
|
void |
testAllCertificatesSamePoliciesTest10()
|
void |
testAllCertificatesSamePoliciesTest13()
|
void |
testAllCertificatesSamePolicyTest1()
|
void |
testAnyPolicyTest14()
|
void |
testCANotBeforeDateTest1()
|
void |
testDifferentPoliciesTest12()
|
void |
testDifferentPoliciesTest3()
|
void |
testDifferentPoliciesTest4()
|
void |
testDifferentPoliciesTest5()
|
void |
testDifferentPoliciesTest7()
|
void |
testDifferentPoliciesTest8()
|
void |
testDifferentPoliciesTest9()
|
void |
testInvalidCANotAfterDateTest5()
|
void |
testInvalidCASignatureTest2()
|
void |
testInvalidDSASignaturesTest6()
|
void |
testInvalidEENotAfterDateTest6()
|
void |
testInvalidEENotBeforeDateTest2()
|
void |
testInvalidEESignatureTest3()
|
void |
testInvalidNegativeSerialNumberTest15()
|
void |
testInvalidValidPre2000UTCNotAfterDateTest7()
|
void |
testOverlappingPoliciesTest6()
|
void |
testUserNoticeQualifierTest15()
|
void |
testUserNoticeQualifierTest16()
|
void |
testUserNoticeQualifierTest17()
|
void |
testUserNoticeQualifierTest18()
|
void |
testUserNoticeQualifierTest19()
|
void |
testValidDSAParameterInheritanceTest5()
|
void |
testValidDSASignaturesTest4()
|
void |
testValidGeneralizedTimeNotBeforeDateTest4()
|
void |
testValidPre2000UTCNotBeforeDateTest3()
|
void |
testValidSignaturesTest1()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TEST_DATA_HOME
private static final java.lang.String TEST_DATA_HOME
- See Also:
- Constant Field Values
GOOD_CA_CERT
private static final java.lang.String GOOD_CA_CERT
- See Also:
- Constant Field Values
GOOD_CA_CRL
private static final java.lang.String GOOD_CA_CRL
- See Also:
- Constant Field Values
TRUST_ANCHOR_ROOT_CRL
private static final java.lang.String TRUST_ANCHOR_ROOT_CRL
- See Also:
- Constant Field Values
TRUST_ANCHOR_ROOT_CERTIFICATE
private static final java.lang.String TRUST_ANCHOR_ROOT_CERTIFICATE
- See Also:
- Constant Field Values
PKCS12_PASSWORD
private static final char[] PKCS12_PASSWORD
NIST_TEST_POLICY_1
private static java.lang.String NIST_TEST_POLICY_1
NIST_TEST_POLICY_2
private static java.lang.String NIST_TEST_POLICY_2
NIST_TEST_POLICY_3
private static java.lang.String NIST_TEST_POLICY_3
certs
private static java.util.Map certs
crls
private static java.util.Map crls
noPolicies
private static java.util.Set noPolicies
nistTestPolicy1
private static java.util.Set nistTestPolicy1
nistTestPolicy2
private static java.util.Set nistTestPolicy2
nistTestPolicy3
private static java.util.Set nistTestPolicy3
nistTestPolicy1And2
private static java.util.Set nistTestPolicy1And2
NistCertPathTest
public NistCertPathTest()
setUp
public void setUp()
testValidSignaturesTest1
public void testValidSignaturesTest1()
throws java.lang.Exception
- Throws:
java.lang.Exception
testInvalidCASignatureTest2
public void testInvalidCASignatureTest2()
throws java.lang.Exception
- Throws:
java.lang.Exception
testInvalidEESignatureTest3
public void testInvalidEESignatureTest3()
throws java.lang.Exception
- Throws:
java.lang.Exception
testValidDSASignaturesTest4
public void testValidDSASignaturesTest4()
throws java.lang.Exception
- Throws:
java.lang.Exception
testValidDSAParameterInheritanceTest5
public void testValidDSAParameterInheritanceTest5()
throws java.lang.Exception
- Throws:
java.lang.Exception
testInvalidDSASignaturesTest6
public void testInvalidDSASignaturesTest6()
throws java.lang.Exception
- Throws:
java.lang.Exception
testCANotBeforeDateTest1
public void testCANotBeforeDateTest1()
throws java.lang.Exception
- Throws:
java.lang.Exception
testInvalidEENotBeforeDateTest2
public void testInvalidEENotBeforeDateTest2()
throws java.lang.Exception
- Throws:
java.lang.Exception
testValidPre2000UTCNotBeforeDateTest3
public void testValidPre2000UTCNotBeforeDateTest3()
throws java.lang.Exception
- Throws:
java.lang.Exception
testValidGeneralizedTimeNotBeforeDateTest4
public void testValidGeneralizedTimeNotBeforeDateTest4()
throws java.lang.Exception
- Throws:
java.lang.Exception
testInvalidCANotAfterDateTest5
public void testInvalidCANotAfterDateTest5()
throws java.lang.Exception
- Throws:
java.lang.Exception
testInvalidEENotAfterDateTest6
public void testInvalidEENotAfterDateTest6()
throws java.lang.Exception
- Throws:
java.lang.Exception
testInvalidValidPre2000UTCNotAfterDateTest7
public void testInvalidValidPre2000UTCNotAfterDateTest7()
throws java.lang.Exception
- Throws:
java.lang.Exception
testInvalidNegativeSerialNumberTest15
public void testInvalidNegativeSerialNumberTest15()
throws java.lang.Exception
- Throws:
java.lang.Exception
testAllCertificatesSamePolicyTest1
public void testAllCertificatesSamePolicyTest1()
throws java.lang.Exception
- Throws:
java.lang.Exception
testAllCertificatesNoPoliciesTest2
public void testAllCertificatesNoPoliciesTest2()
throws java.lang.Exception
- Throws:
java.lang.Exception
testDifferentPoliciesTest3
public void testDifferentPoliciesTest3()
throws java.lang.Exception
- Throws:
java.lang.Exception
testDifferentPoliciesTest4
public void testDifferentPoliciesTest4()
throws java.lang.Exception
- Throws:
java.lang.Exception
testDifferentPoliciesTest5
public void testDifferentPoliciesTest5()
throws java.lang.Exception
- Throws:
java.lang.Exception
testOverlappingPoliciesTest6
public void testOverlappingPoliciesTest6()
throws java.lang.Exception
- Throws:
java.lang.Exception
testDifferentPoliciesTest7
public void testDifferentPoliciesTest7()
throws java.lang.Exception
- Throws:
java.lang.Exception
testDifferentPoliciesTest8
public void testDifferentPoliciesTest8()
throws java.lang.Exception
- Throws:
java.lang.Exception
testDifferentPoliciesTest9
public void testDifferentPoliciesTest9()
throws java.lang.Exception
- Throws:
java.lang.Exception
testAllCertificatesSamePoliciesTest10
public void testAllCertificatesSamePoliciesTest10()
throws java.lang.Exception
- Throws:
java.lang.Exception
testAllCertificatesAnyPolicyTest11
public void testAllCertificatesAnyPolicyTest11()
throws java.lang.Exception
- Throws:
java.lang.Exception
testDifferentPoliciesTest12
public void testDifferentPoliciesTest12()
throws java.lang.Exception
- Throws:
java.lang.Exception
testAllCertificatesSamePoliciesTest13
public void testAllCertificatesSamePoliciesTest13()
throws java.lang.Exception
- Throws:
java.lang.Exception
testAnyPolicyTest14
public void testAnyPolicyTest14()
throws java.lang.Exception
- Throws:
java.lang.Exception
testUserNoticeQualifierTest15
public void testUserNoticeQualifierTest15()
throws java.lang.Exception
- Throws:
java.lang.Exception
testUserNoticeQualifierTest16
public void testUserNoticeQualifierTest16()
throws java.lang.Exception
- Throws:
java.lang.Exception
testUserNoticeQualifierTest17
public void testUserNoticeQualifierTest17()
throws java.lang.Exception
- Throws:
java.lang.Exception
testUserNoticeQualifierTest18
public void testUserNoticeQualifierTest18()
throws java.lang.Exception
- Throws:
java.lang.Exception
testUserNoticeQualifierTest19
public void testUserNoticeQualifierTest19()
throws java.lang.Exception
- Throws:
java.lang.Exception
doExceptionTest
private void doExceptionTest(java.lang.String trustAnchor,
java.lang.String[] certs,
java.lang.String[] crls,
int index,
java.lang.String message)
throws java.lang.Exception
- Throws:
java.lang.Exception
doExceptionTest
private void doExceptionTest(java.lang.String trustAnchor,
java.lang.String[] certs,
java.lang.String[] crls,
java.util.Set policies,
int index,
java.lang.String message)
throws java.lang.Exception
- Throws:
java.lang.Exception
doTest
private java.security.cert.PKIXCertPathValidatorResult doTest(java.lang.String trustAnchor,
java.lang.String[] certs,
java.lang.String[] crls)
throws java.lang.Exception
- Throws:
java.lang.Exception
doTest
private java.security.cert.PKIXCertPathValidatorResult doTest(java.lang.String trustAnchor,
java.lang.String[] certs,
java.lang.String[] crls,
java.util.Set policies)
throws java.lang.Exception
- Throws:
java.lang.Exception
loadCert
private java.security.cert.X509Certificate loadCert(java.lang.String certName)
loadCrl
private java.security.cert.X509CRL loadCrl(java.lang.String crlName)
throws java.lang.Exception
- Throws:
java.lang.Exception
getTrustAnchor
private java.security.cert.TrustAnchor getTrustAnchor(java.lang.String trustAnchorName)
throws java.lang.Exception
- Throws:
java.lang.Exception
getPkitsHome
private java.lang.String getPkitsHome()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception
suite
public static Test suite()
throws java.lang.Exception
- Throws:
java.lang.Exception