mace-opensaml-users - Re: [OpenSAML] Marshalling problem for AttributeAssignmentType
Subject: OpenSAML user discussion
List archive
- From: "Håkon Sagehaug" <>
- To:
- Subject: Re: [OpenSAML] Marshalling problem for AttributeAssignmentType
- Date: Mon, 26 May 2008 09:02:28 +0200
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=FABq6w3gWsEuoN2cJoTeaOCTuxc8YeblJeVUocvpRQLRclp0XC+E0D0lyCSufeYQhdPD0d/rvc6IB3K53RWgJCcuhLO5irar2ZsLuliYtYFIiQfLudp4bEbxLd55ZRYV7T9nKjL930GzSEOkd2RcUTQmo0ia416kQG/ggYXoiPc=
Hi
Does it work for you now?
cheers, Håkon
2008/5/20 Christina Cunningham <>:
Thanks for this Håkon
Håkon Sagehaug wrote:
Hi Christina2008/5/19 Christina Cunningham < <mailto:>>:
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
e: c.cunningham [at] besc.ac.uk <http://besc.ac.uk>
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
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 Cunninghamt: +44 (0)28 9097 4809
Software Engineer
Belfast eScience Centre (BeSC)
Queen's University, Belfast
e: c.cunningham [at] besc.ac.uk
w: www.besc.ac.uk
--
Håkon Sagehaug, Software Developer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)
- 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, 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
Archive powered by MHonArc 2.6.16.