Skip to Content.
Sympa Menu

mace-opensaml-users - SAMLAuthorizationDecisionStatement Question

Subject: OpenSAML user discussion

List archive

SAMLAuthorizationDecisionStatement Question


Chronological Thread 
  • From: Eric Kotler <>
  • To:
  • Subject: SAMLAuthorizationDecisionStatement Question
  • Date: Thu, 16 Oct 2003 19:02:39 -0700 (PDT)

Hi,

I was reviewing the following code in the fromDOM(Element e) function
from SAMLAuthorizationDecisionStatement.jave where the 'Evidence'
element is being extracted:

else if (n.getNodeType() == Node.ELEMENT_NODE &&
XML.isElementNamed((Element)n, XML.SAML_NS, "Evidence"))
{
Node n2 = n.getFirstChild();
while (n2 != null)
{
if (n2.getNodeType() == Node.ELEMENT_NODE &&
XML.isElementNamed((Element)n, XML.SAML_NS, "Assertion"))
evidence.add(new SAMLAssertion((Element)n2));
else if (n2.getNodeType() == Node.ELEMENT_NODE &&
XML.isElementNamed((Element)n, XML.SAML_NS, "AssertionIDReference"))

evidence.add(n2.getFirstChild().getNodeValue());
n2 = n2.getNextSibling();
}
}
n = n.getNextSibling();


My question is: Shouldn't the node parameter used in the
XML.isElementNamed function be (Element)n2 not (Element) n ?


Thanks,

Eric







__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

---------------------------------------------------mace-opensaml-users-+
For list utilities, archives, subscribe, unsubscribe, etc. please visit the
ListProc web interface at

http://archives.internet2.edu/

---------------------------------------------------mace-opensaml-users--




Archive powered by MHonArc 2.6.16.

Top of Page