Fixed trust engine test w/updated CRL.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 29 Aug 2006 16:16:33 +0000 (16:16 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Tue, 29 Aug 2006 16:16:33 +0000 (16:16 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1996 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

data/metadata8.xml
data/trusttest.jks
tests/edu/internet2/middleware/shibboleth/common/TrustTests.java

index 8c6d03f..722016c 100644 (file)
@@ -8,31 +8,31 @@
                        <KeyAuthority xmlns="urn:mace:shibboleth:metadata:1.0">
                                <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
            <ds:X509Data>
-                <ds:X509Certificate>MIIC4zCCAkygAwIBAgIBADANBgkqhkiG9w0BAQQFADBbMQswCQYDVQQGEwJVUzEL
-MAkGA1UECBMCVE4xEDAOBgNVBAcTB01lbXBoaXMxEjAQBgNVBAoTCVdhc3NhLk9y
-RzEZMBcGA1UEAxMQV2FsdGVyJ3MgVGVzdCBDQTAeFw0wNTA0MDgwMzU1MzdaFw0w
-NjA0MDgwMzU1MzdaMFsxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJUTjEQMA4GA1UE
-BxMHTWVtcGhpczESMBAGA1UEChMJV2Fzc2EuT3JHMRkwFwYDVQQDExBXYWx0ZXIn
-cyBUZXN0IENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDi0Lwb7bURmrS1
-cpMuBAfYhAqd5jbnIOzJ9U8TfM0e6eTnPZMrWw3fhtbTu//RY2yMwGi4bEJqtkWo
-IsOPK3Zu8iawHXdmJx6jYigWOHljQKQDDo2YQGwHiEmsfyeZLLcDLmb9mAZV1MEP
-Qo+gv13T3DPJI/lt2xNhbUulHr+XGwIDAQABo4G2MIGzMB0GA1UdDgQWBBRwbYDU
-/IGFzPTOpQlqjhTQHPnQITC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ZXN0IE9yZzEZMBcGA1UEAxMQV2FsdGVyJ3MgVGVzdCBDQRcNMDYwODI5MTYxMzEy
+WhcNMjMwMjAxMTYxMzEyWjAcMBoCCQDRmCmcevCiuhcNMDYwODI5MTYxMjEyWjAN
+BgkqhkiG9w0BAQQFAAOBgQCie5olXEW9FZPYVJOlawl6A3pfnvdguOtYfpP+OzHZ
+9BmDszZyZ/qMxjk4vvdCdmncMhjaVS8DqddPosF5oMriiWJguXa/qLXCwjIIvYmy
+sZw7y1qtM0enaO2j4LPxDXbelufyt+AxX5a4jMnMouTgJXSd9/5wsmjaH/UnL0F/
+1g==</ds:X509CRL>
             </ds:X509Data>
                                </ds:KeyInfo>
                        </KeyAuthority>
index b141e92..1901564 100644 (file)
Binary files a/data/trusttest.jks and b/data/trusttest.jks differ
index e26cefc..fc206bc 100644 (file)
@@ -48,7 +48,7 @@ public class TrustTests extends TestCase {
                super(name);
                BasicConfigurator.resetConfiguration();
                BasicConfigurator.configure();
-               Logger.getRootLogger().setLevel(Level.DEBUG);
+               Logger.getRootLogger().setLevel(Level.OFF);
                
                Configuration.init();
        }
@@ -474,7 +474,7 @@ public class TrustTests extends TestCase {
        }
 
        public void testCRLDoesntBreakValid() {
-
+                
                try {
                        // Pull the role descriptor from example metadata
                        MetadataProvider metadata = new FilesystemMetadataProvider(new File("data/metadata8.xml"));
@@ -485,7 +485,7 @@ public class TrustTests extends TestCase {
                        KeyStore keyStore = KeyStore.getInstance("JKS");
                        keyStore.load(new ShibResource(new File("data/trusttest.jks").toURL().toString()).getInputStream(),
                                        new char[]{'t', 'e', 's', 't', '1', '2', '3'});
-                       X509Certificate cert = (X509Certificate) keyStore.getCertificate("inline4");
+                       X509Certificate cert = (X509Certificate) keyStore.getCertificate("pkix5");
 
                        // Try to validate against the metadata
                        TrustEngine<X509EntityCredential> validator = new ShibbolethTrustEngine();