Skip to Content.
Sympa Menu

mace-opensaml-users - Re: [OpenSAML] Problem with XACMLPolicyStatement

Subject: OpenSAML user discussion

List archive

Re: [OpenSAML] Problem with XACMLPolicyStatement


Chronological Thread 
  • From: Chad La Joie <>
  • To:
  • Subject: Re: [OpenSAML] Problem with XACMLPolicyStatement
  • Date: Sat, 31 Jul 2010 07:55:49 -0400
  • Organization: Itumi, LLC



On 7/31/10 5:24 AM,

wrote:
But this assertion is wrong, according with the schema defined in [2]
(the schema in the
oasis home page is buggy).

Right, thats not the version that OpenSAML uses since it's invalid.

This means that instead of a XACMLPolicyStatement I should create a
Statement, with xsi:type as xacml,

<saml:Statement xsi:type="xacml-saml:XACMLAuthzDecisionStatementType">

<saml:Statement xsi:type="xacml-saml:XACMLPolicyStatementType">


But how to do it with opensaml? There's no Statement builder!

The Builders have a number of build methods, you want to use the one that takes 2 QNames (the element name and schema type). So it becomes something like this:

QName statementElementName;
QName policyStatementSchemaType;
builder.buildObject(elementName, schemaType);

--
Chad La Joie
http://itumi.biz
trusted identities, delivered



Archive powered by MHonArc 2.6.16.

Top of Page