mace-opensaml-users - Re: [OpenSAML] Marshalling problem for AttributeAssignmentType
Subject: OpenSAML user discussion
List archive
- From: Christina Cunningham <>
- To:
- Subject: Re: [OpenSAML] Marshalling problem for AttributeAssignmentType
- Date: Tue, 20 May 2008 16:42:18 +0100
Thanks for this Håkon
Håkon Sagehaug wrote:
Hi Christina
I looked at the code and found the error. It was that AttributeAssignment extends AttribteValue, but this was not reflected in the marshaller and to some extend not in the unmarshaller code. I've submitted a patch to it.
cheers, Håkon
2008/5/19 Christina Cunningham < <mailto:>>:
I am having issues with marshalling an AttributeAssignmentType
whilst constructing an XACMLAuthzDecisionStatementType. When the
AttributeAssignmentType is marshalled as part of the
XACMLAuthzDecisionStatementType, the AttributeId is set, but the
dataType and the value are not present.
<code>
AttributeAssignmentTypeImplBuilder attributeAssignmentBuilder =
(AttributeAssignmentTypeImplBuilder)
builderFactory.getBuilder(AttributeAssignmentType.DEFAULT_ELEMENT_NAME);
AttributeAssignmentType attributeAssignment =
attributeAssignmentBuilder.buildObject(); attributeAssignment.setAttributeId("AllowedSoftware");
attributeAssignment.setDataType("http://www.w3.org/2001/XMLSchema#string"
<http://www.w3.org/2001/XMLSchema#string>);
attributeAssignment.setValue("contentService.war");
</code>
The above code produces the following xml:
<xacml:Obligations
xmlns:xacml="urn:oasis:names:tc:xacml:2.0:policy:schema:os">
<xacml:Obligation FulfillOn="Permit" ObligationId="DeployTarget">
<xacml:AttributeAssignment AttributeId="AllowedSoftware" />
</xacml:Obligation>
</xacml:Obligations>
I am using opensaml 2.1.0 and the jars etc. that accompanied that
version; java version "1.6.0_01"
Any suggestions?
Thanks, Christina
-- Christina Cunningham
Software Engineer
Belfast eScience Centre (BeSC)
Queen's University, Belfast
e: c.cunningham [at] besc.ac.uk <http://besc.ac.uk>
w: www.besc.ac.uk <http://www.besc.ac.uk/>
--
Håkon Sagehaug, Software Developer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)
--
Christina Cunningham
Software Engineer
Belfast eScience Centre (BeSC)
Queen's University, Belfast
e: c.cunningham [at] besc.ac.uk
w: www.besc.ac.uk
t: +44 (0)28 9097 4809
- Marshalling problem for AttributeAssignmentType, Christina Cunningham, 05/19/2008
- <Possible follow-up(s)>
- Marshalling problem for AttributeAssignmentType, Christina Cunningham, 05/19/2008
- Re: [OpenSAML] Marshalling problem for AttributeAssignmentType, Brent Putman, 05/19/2008
- Re: [OpenSAML] Marshalling problem for AttributeAssignmentType, Håkon Sagehaug, 05/20/2008
- Re: [OpenSAML] Marshalling problem for AttributeAssignmentType, Christina Cunningham, 05/20/2008
- Re: [OpenSAML] Marshalling problem for AttributeAssignmentType, Håkon Sagehaug, 05/26/2008
- Re: [OpenSAML] Marshalling problem for AttributeAssignmentType, Christina Cunningham, 05/26/2008
- Re: [OpenSAML] Marshalling problem for AttributeAssignmentType, Håkon Sagehaug, 05/26/2008
- Re: [OpenSAML] Marshalling problem for AttributeAssignmentType, Christina Cunningham, 05/20/2008
- RE: Marshalling problem for AttributeAssignmentType, Håkon Sagehaug, 05/26/2008
- Re: [OpenSAML] RE: Marshalling problem for AttributeAssignmentType, Christina Cunningham, 05/26/2008
- Re: [OpenSAML] RE: Marshalling problem for AttributeAssignmentType, Håkon Sagehaug, 05/26/2008
- Re: [OpenSAML] RE: Marshalling problem for AttributeAssignmentType, Christina Cunningham, 05/26/2008
- Re: [OpenSAML] RE: Marshalling problem for AttributeAssignmentType, Håkon Sagehaug, 05/26/2008
- Re: [OpenSAML] RE: Marshalling problem for AttributeAssignmentType, Christina Cunningham, 05/26/2008
- Re: [OpenSAML] RE: Marshalling problem for AttributeAssignmentType, Håkon Sagehaug, 05/26/2008
- Re: [OpenSAML] RE: Marshalling problem for AttributeAssignmentType, Christina Cunningham, 05/26/2008
- Re: [OpenSAML] RE: Marshalling problem for AttributeAssignmentType, Christina Cunningham, 05/26/2008
- Re: [OpenSAML] RE: Marshalling problem for AttributeAssignmentType, Håkon Sagehaug, 05/26/2008
- Re: [OpenSAML] RE: Marshalling problem for AttributeAssignmentType, Christina Cunningham, 05/26/2008
- Re: [OpenSAML] RE: Marshalling problem for AttributeAssignmentType, Håkon Sagehaug, 05/26/2008
- Re: [OpenSAML] RE: Marshalling problem for AttributeAssignmentType, Christina Cunningham, 05/26/2008
Archive powered by MHonArc 2.6.16.