mace-opensaml-users - RE: OpenSaml Java - Adding hierarchical attributes into an AttributeV alue possible?
Subject: OpenSAML user discussion
List archive
RE: OpenSaml Java - Adding hierarchical attributes into an AttributeV alue possible?
Chronological Thread
- From: "Scott Cantor" <>
- To: "'Brückler Peter'" <>
- Cc: <>
- Subject: RE: OpenSaml Java - Adding hierarchical attributes into an AttributeV alue possible?
- Date: Thu, 17 Feb 2005 10:47:00 -0500
- Organization: The Ohio State University
> As the attributes to store are in hierarchical form (One2Many
> Relation from the database) I am not sure how to define an
> extension-point (explicit XML Schema) and the XML data inside
> the AttributeValue tag. This should be possible adhering to
> the SAML-Core-Specification.
>
> Could you tell me if this is even possible with OpenSaml, and
> if so, how to do it.
You have to override the valueToDOM method to generate the XML you want.
You'd also have to subclass the DOM constructor to parse the values. I need
to provide a better mechanism for that half.
You could also specify the xsi:type with setType, but I wouldn't do that.
You don't want to force people to have your extension just to parse the XML.
In general, this is a really hard thing to program for at either end and
you're far better off avoiding it or decomposing the attribute unless you
have a really good reason.
-- Scott
- RE: OpenSaml Java - Adding hierarchical attributes into an AttributeV alue possible?, Scott Cantor, 02/17/2005
Archive powered by MHonArc 2.6.16.