Author: anil.saldhana(a)jboss.com
Date: 2010-12-01 08:21:53 -0500 (Wed, 01 Dec 2010)
New Revision: 580
Modified:
federation/trunk/picketlink-bindings-jboss/src/main/java/org/picketlink/identity/federation/bindings/jboss/auth/mapping/STSGroupMappingProvider.java
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/parsers/saml/SAMLAssertionParser.java
Log:
fixes
Modified:
federation/trunk/picketlink-bindings-jboss/src/main/java/org/picketlink/identity/federation/bindings/jboss/auth/mapping/STSGroupMappingProvider.java
===================================================================
---
federation/trunk/picketlink-bindings-jboss/src/main/java/org/picketlink/identity/federation/bindings/jboss/auth/mapping/STSGroupMappingProvider.java 2010-12-01
01:20:01 UTC (rev 579)
+++
federation/trunk/picketlink-bindings-jboss/src/main/java/org/picketlink/identity/federation/bindings/jboss/auth/mapping/STSGroupMappingProvider.java 2010-12-01
13:21:53 UTC (rev 580)
@@ -4,8 +4,6 @@
import java.util.Map;
import java.util.Set;
-import javax.xml.bind.JAXBException;
-
import org.apache.log4j.Logger;
import org.jboss.security.identity.RoleGroup;
import org.jboss.security.identity.plugins.SimpleRole;
Modified:
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/parsers/saml/SAMLAssertionParser.java
===================================================================
---
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/parsers/saml/SAMLAssertionParser.java 2010-12-01
01:20:01 UTC (rev 579)
+++
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/parsers/saml/SAMLAssertionParser.java 2010-12-01
13:21:53 UTC (rev 580)
@@ -32,7 +32,9 @@
import javax.xml.transform.dom.DOMResult;
import javax.xml.transform.stax.StAXSource;
+import org.picketlink.identity.federation.core.exceptions.ConfigurationException;
import org.picketlink.identity.federation.core.exceptions.ParsingException;
+import org.picketlink.identity.federation.core.exceptions.ProcessingException;
import org.picketlink.identity.federation.core.parsers.ParserNamespaceSupport;
import org.picketlink.identity.federation.core.parsers.util.SAMLParserUtil;
import org.picketlink.identity.federation.core.parsers.util.StaxParserUtil;
@@ -43,6 +45,7 @@
import org.picketlink.identity.federation.core.util.TransformerUtil;
import org.picketlink.identity.federation.newmodel.saml.v2.assertion.*;
import org.w3c.dom.Document;
+import org.w3c.dom.Element;
/**
* Parse the saml assertion
@@ -53,6 +56,12 @@
{
private String ASSERTION = JBossSAMLConstants.ASSERTION.get();
+ public AssertionType fromElement( Element element ) throws ConfigurationException,
ProcessingException, ParsingException
+ {
+ XMLEventReader xmlEventReader = StaxParserUtil.getXMLEventReader(
DocumentUtil.getNodeAsStream(element));
+ return (AssertionType) parse(xmlEventReader);
+ }
+
/**
* @see {@link ParserNamespaceSupport#parse(XMLEventReader)}
*/
Show replies by date