Skip to Content.
Sympa Menu

mace-opensaml-users - Re: [OpenSAML] unable to add ResourceContent (XML any type) to Resource attribute with opensaml.

Subject: OpenSAML user discussion

List archive

Re: [OpenSAML] unable to add ResourceContent (XML any type) to Resource attribute with opensaml.


Chronological Thread 
  • From: "Håkon Sagehaug" <>
  • To:
  • Subject: Re: [OpenSAML] unable to add ResourceContent (XML any type) to Resource attribute with opensaml.
  • Date: Tue, 30 Sep 2008 15:38:42 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:references:x-google-sender-auth; b=mA62FAaVBWTRgsYk2w7BQFa9RRWTy8MAcI0GjE0mOz0RnSfwnIcNCZ8z6OYkHmh0Qy QJKMuUy2i78ycfl/il889574VWfsiZd9q+igqSCXyIF6LvCiYFM779rUO2JiPmdmBVSs RgXeaKHJ3rr3uB0UKUENi2pPerEVDeLvqCmXI=

Hi

I tried to unmarshal, with ResourceContentUnamrshaller,  xml like this


<xacml-context:ResourceContent xmlns:xacml-context="urn:oasis:names:tc:xacml:2.0:context:schema:os">           
     <Element xmlns:xs="http://www.w3.org/2001/XMLSchema"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"          xsi:type="xs:string">
          test
     </Element>
</xacml-context:ResourceContent>

This worked fine, is this much different from what you want?

Håkon
2008/9/30 Michael Lausch <>
On Tue, Sep 30, 2008 at 3:14 PM, Håkon Sagehaug
<> wrote:
> Hi
>
> Normally as i remember if you want something form DOM to java object in
> opensaml you use the unmarshaller for that object you want.. So for

The problem is that i don't know what object it will be.
The gaol is to authorise webservice requests with XACML. The plan is to
take the SOAP body of the request, put the DOM in the ResourceContent and
pass it to the XACML evaluation, which in turn will use use XPath expressions
in XACML policy files to extract the values it needs for evaluation.


> ResourceContent it would be the ResourceContentUnmarshaller.

ResourceContent is an XML any type. I don't think you can write an
unmarshaller for this.


>
> Also  content.getContent() methog I cant see ResourceContentType in
> opensaml. what library are you using.

i just saw that the snippet uses the jboss xacml opensaml extensions.
Maybe this is the wrong mailinglist to ask.

Nevertheless i also did not manage to implement it using only opensaml.



--
Håkon Sagehaug, Software Developer
Parallab, Bergen Center for Computational Science (BCCS)
UNIFOB AS (University of Bergen Research Company)



Archive powered by MHonArc 2.6.16.

Top of Page