Fixed a small bug in the trust engine. I was misunderstanding part of the xml toolin...
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 3 Aug 2006 16:08:55 +0000 (16:08 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 3 Aug 2006 16:08:55 +0000 (16:08 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1993 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/common/provider/ShibbolethTrustEngine.java

index 2d1e0d4..addf313 100644 (file)
@@ -122,8 +122,7 @@ public class ShibbolethTrustEngine extends InlinePKIKeyTrustEngine implements Tr
 
                                // Find the verification depth for all anchors in this set
                                int verifyDepth = 1;
-                               String rawVerifyDepth = keyAuthority.getUnknownAttributes().get("VerifyDepth");
-                               // TODO doesn't work, need to fix attribute map
+                               String rawVerifyDepth = keyAuthority.getUnknownAttributes().get(new QName("VerifyDepth"));
                                if (rawVerifyDepth != null && !rawVerifyDepth.equals("")) {
                                        try {
                                                verifyDepth = Integer.parseInt(rawVerifyDepth);
@@ -145,7 +144,7 @@ public class ShibbolethTrustEngine extends InlinePKIKeyTrustEngine implements Tr
                                }
 
                                log.debug("Found Shibboleth Key Authority Metadata: Verification depth: " + verifyDepth
-                                               + " Trust Anchors: " + trustAnchors.size() + " Revocation Lists: " + revocationLists.size()
+                                               + "   Trust Anchors: " + trustAnchors.size() + "   Revocation Lists: " + revocationLists.size()
                                                + ".");
                                return new PKIXValidationInformation(verifyDepth, trustAnchors, revocationLists);
                        }