mace-opensaml-users - Re: [OpenSAML] Need XMLObject in assertion, I believe
Subject: OpenSAML user discussion
List archive
- From: Brent Putman <>
- To:
- Subject: Re: [OpenSAML] Need XMLObject in assertion, I believe
- Date: Wed, 21 Apr 2010 17:20:05 -0400
On 4/21/2010 4:38 PM, Jason Countryman wrote:
To add to everything that Scott already said (since I was already in the middle of responding):
The problem with the above is that the content model of the saml:AttributeValue that you want is *not* a string, that is, it's not an xs:string type per XMLSchema, so you can't use the XSString provider. You need to use an XML object provider that will allow you to add element children. The quick and dirty way is to use an XSAny to implement the AttributeValue. Then, you need an XMLObject to represent your Role element. Again, the quick and dirty way is to use the XSAny provider, which amongst other uses, is there to support things like the xs:anyType content model (which is the ur-type of the type model in XML Schema).
Yeah, b/c it's being treated as a string, and not as an element child, so it's escaping characters which aren't otherwise legal in string content.
Yes, that's what I understood, except: I doubt that you really want the AttributeValue to claim an xsi:type of xs:string, since it's not a legal string content model. In this case, the xsi:type should probably just be omitted.
Attached is a quick and dirty example that I just coded up. Note that I used the XSAny to represent both the AttributeValue (because you need to support element content) and the nhin:Role (as an alternative to implementing a full XMLObject provider set for that element). HTH, Brent |
Attachment:
XSAnyAttributeValueExample.java
Description: none
- RE: [OpenSAML] Need XMLObject in assertion, I believe, (continued)
- RE: [OpenSAML] Need XMLObject in assertion, I believe, Jason Countryman, 04/21/2010
- RE: [OpenSAML] Need XMLObject in assertion, I believe, Scott Cantor, 04/21/2010
- RE: [OpenSAML] Need XMLObject in assertion, I believe, Jason Countryman, 04/21/2010
- Re: [OpenSAML] Need XMLObject in assertion, I believe, Brent Putman, 04/21/2010
- Re: [OpenSAML] Need XMLObject in assertion, I believe, Jason Countryman, 04/21/2010
- Re: [OpenSAML] Need XMLObject in assertion, I believe, Brent Putman, 04/21/2010
- RE: [OpenSAML] Need XMLObject in assertion, I believe, Scott Cantor, 04/21/2010
- RE: [OpenSAML] Need XMLObject in assertion, I believe, Jason Countryman, 04/21/2010
- RE: [OpenSAML] Need XMLObject in assertion, I believe, Jason Countryman, 04/21/2010
- RE: [OpenSAML] Need XMLObject in assertion, I believe, Scott Cantor, 04/21/2010
- Re: [OpenSAML] Need XMLObject in assertion, I believe, Brent Putman, 04/21/2010
Archive powered by MHonArc 2.6.16.