Synch'd from 1.2. (Fixed ClassCastException when SAML attribute designators are...
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 10 Nov 2004 16:42:07 +0000 (16:42 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 10 Nov 2004 16:42:07 +0000 (16:42 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1187 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/aa/AAServlet.java

index fe49309..a7bef9f 100755 (executable)
@@ -54,6 +54,7 @@ import org.apache.xml.security.signature.XMLSignature;
 import org.opensaml.InvalidCryptoException;
 import org.opensaml.SAMLAssertion;
 import org.opensaml.SAMLAttribute;
 import org.opensaml.InvalidCryptoException;
 import org.opensaml.SAMLAssertion;
 import org.opensaml.SAMLAttribute;
+import org.opensaml.SAMLAttributeDesignator;
 import org.opensaml.SAMLAttributeQuery;
 import org.opensaml.SAMLAttributeStatement;
 import org.opensaml.SAMLAudienceRestrictionCondition;
 import org.opensaml.SAMLAttributeQuery;
 import org.opensaml.SAMLAttributeStatement;
 import org.opensaml.SAMLAudienceRestrictionCondition;
@@ -314,7 +315,7 @@ public class AAServlet extends TargetFederationComponent {
                                log.info("Request designates specific attributes, resolving this set.");
                                ArrayList requestedAttrs = new ArrayList();
                                while (requestedAttrsIterator.hasNext()) {
                                log.info("Request designates specific attributes, resolving this set.");
                                ArrayList requestedAttrs = new ArrayList();
                                while (requestedAttrsIterator.hasNext()) {
-                                       SAMLAttribute attribute = (SAMLAttribute) requestedAttrsIterator.next();
+                                       SAMLAttributeDesignator attribute = (SAMLAttributeDesignator) requestedAttrsIterator.next();
                                        try {
                                                log.debug("Designated attribute: (" + attribute.getName() + ")");
                                                requestedAttrs.add(new URI(attribute.getName()));
                                        try {
                                                log.debug("Designated attribute: (" + attribute.getName() + ")");
                                                requestedAttrs.add(new URI(attribute.getName()));