Author: anil.saldhana(a)jboss.com
Date: 2009-08-27 12:30:56 -0400 (Thu, 27 Aug 2009)
New Revision: 745
Modified:
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/WSTrustJAXBFactory.java
Log:
fix the rst parsing code
Modified:
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/WSTrustJAXBFactory.java
===================================================================
---
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/WSTrustJAXBFactory.java 2009-08-26
04:11:02 UTC (rev 744)
+++
identity-federation/trunk/jboss-identity-fed-api/src/main/java/org/jboss/identity/federation/api/wstrust/WSTrustJAXBFactory.java 2009-08-27
16:30:56 UTC (rev 745)
@@ -132,7 +132,11 @@
JAXBElement<RequestSecurityTokenType> jaxbRST;
try
{
- jaxbRST = (JAXBElement<RequestSecurityTokenType>)
binder.unmarshal(document);
+ Node rst = this.findNodeByNameNS(document, "RequestSecurityToken",
WSTrustConstants.BASE_NAMESPACE);
+ if(rst == null)
+ throw new RuntimeException("Request Security Token node not
found");
+
+ jaxbRST = (JAXBElement<RequestSecurityTokenType>) binder.unmarshal(rst);
RequestSecurityTokenType rstt = jaxbRST.getValue();
holders.set(new SAMLDocumentHolder(rstt, document));
Show replies by thread