cast to XSAny in order to actually get the text content.
This commit is contained in:
Scott Battaglia 2013-01-06 18:24:11 -05:00
parent 1a6c1aa002
commit cb27ee1bf5
1 changed files with 6 additions and 1 deletions

View File

@ -36,6 +36,7 @@ import org.opensaml.xml.io.UnmarshallerFactory;
import org.opensaml.xml.io.UnmarshallingException;
import org.opensaml.xml.parse.BasicParserPool;
import org.opensaml.xml.parse.XMLParserException;
import org.opensaml.xml.schema.XSAny;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
@ -220,7 +221,11 @@ public final class Saml11TicketValidator extends AbstractUrlBasedTicketValidator
private List<?> getValuesFrom(final Attribute attribute) {
final List<Object> list = new ArrayList<Object>();
for (final Object o : attribute.getAttributeValues()) {
list.add(o.toString());
if (o instanceof XSAny) {
list.add(((XSAny) o).getTextContent());
} else {
list.add(o.toString());
}
}
return list;
}