Skip to Content.
Sympa Menu

mace-opensaml-users - Marshalling problem for AttributeAssignmentType

Subject: OpenSAML user discussion

List archive

Marshalling problem for AttributeAssignmentType


Chronological Thread 
  • From: "Christina Cunningham" <>
  • To:
  • Subject: Marshalling problem for AttributeAssignmentType
  • Date: Mon, 19 May 2008 16:50:45 +0100

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");
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
w: www.besc.ac.uk



Archive powered by MHonArc 2.6.16.

Top of Page