Use protocol support constant instead of literal.
authorcantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 20 Jun 2005 02:39:52 +0000 (02:39 +0000)
committercantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Mon, 20 Jun 2005 02:39:52 +0000 (02:39 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1638 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/idp/provider/SAMLv1_1ArtifactQueryHandler.java

index 12686f5..eae14c7 100644 (file)
@@ -31,6 +31,7 @@ import org.opensaml.SAMLAssertion;
 import org.opensaml.SAMLException;
 import org.opensaml.SAMLRequest;
 import org.opensaml.SAMLResponse;
+import org.opensaml.XML;
 import org.opensaml.artifact.Artifact;
 import org.w3c.dom.Element;
 
@@ -114,7 +115,7 @@ public class SAMLv1_1ArtifactQueryHandler extends BaseServiceHandler implements
                                        log.info("No metadata found for provider: (" + mapping.getServiceProviderId() + ").");
                                        throw new SAMLException(SAMLException.REQUESTER, "Invalid service provider.");
                                }
-                               RoleDescriptor role = provider.getSPSSODescriptor("urn:oasis:names:tc:SAML:1.1:protocol");
+                               RoleDescriptor role = provider.getSPSSODescriptor(XML.SAML11_PROTOCOL_ENUM);
                                if (role == null) {
                                        log
                                                        .info("SPSSO role not found in metadata for provider: (" + mapping.getServiceProviderId()