Skip to Content.
Sympa Menu

mace-opensaml-users - Re: [OpenSAML] Handling AttributeStatement content

Subject: OpenSAML user discussion

List archive

Re: [OpenSAML] Handling AttributeStatement content


Chronological Thread 
  • From: Brent Putman <>
  • To:
  • Subject: Re: [OpenSAML] Handling AttributeStatement content
  • Date: Fri, 20 Mar 2009 20:01:29 -0400



Pantvaidya, Vishwajit wrote:
> <saml:Attribute AttributeName="SMContent"
> AttributeNamespace="http://www.netegrity.com/SiteMinder";>
> <saml:AttributeValue>
> <SM:SMContent xmlns:SM="http://www.netegrity.com/SiteMinder";>
> <SM:SMsession>...</SM:SMsession>
> <SM:SMlogin>...</SM:SMlogin>
> <SM:SMprofile>
> <SM:NVpair>header:</SM:NVpair>
> </SM:SMprofile>
> </SM:SMContent>
> </saml:AttributeValue>
> </saml:Attribute>
>
>

Just in case it wasn't clear: Assuming you don't go out and implement
XMLObject providers for things from this SiteMinder schema, this
AttributeValue (as well as each of its children) is going to get
unmarshalled by OpenSAML as an instance of the XSAny interface. This
allows you to get at any attributes, element children and text content
that are present.

http://www.opensaml.org/docs/opensaml/2.2.2/apidocs/org/opensaml/xml/schema/XSAny.html

So you'll just want to have some QName constants handy to get at the
specific children that you want via getUnknownXMLObjects(QName
typeOrName). You'll obviously have to parse out the contents of the
NVPair manually.

--Brent




Archive powered by MHonArc 2.6.16.

Top of Page