Skip to Content.
Sympa Menu

mace-opensaml-users - Re: [OpenSAML] Marshalling problem for AttributeAssignmentType

Subject: OpenSAML user discussion

List archive

Re: [OpenSAML] Marshalling problem for AttributeAssignmentType


Chronological Thread 
  • From: Brent Putman <>
  • To:
  • Subject: Re: [OpenSAML] Marshalling problem for AttributeAssignmentType
  • Date: Mon, 19 May 2008 12:42:31 -0400

The marshaller is wrong, it doesn't extend the right superclass and also doesn't delegate to super where needed.  Please file a bug against java-opensaml2:

http://bugs.internet2.edu/jira/

Thanks,
Brent


Christina Cunningham wrote:
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