Skip to Content.
Sympa Menu

mace-opensaml-users - Re: [OpenSAML] change the tag of SAML assertion

Subject: OpenSAML user discussion

List archive

Re: [OpenSAML] change the tag of SAML assertion


Chronological Thread 
  • From:
  • To:
  • Subject: Re: [OpenSAML] change the tag of SAML assertion
  • Date: Mon, 25 Jan 2010 09:10:49 +0000

You can pass in a custom element QName in to the buildObject method on the builders.
writes:
Hi,
I am using OpenSAML2 and java 1.5 to create the SAML assertion. But the TAG of the generated assertion is coming <saml:Assertion> I want to change the tag from saml to SAML2 so that in the assertion the tag will appear <saml2:Assertion>,<saml2:Issuer> instead of <saml:Issuer>.
I am using the following code for creating assertion.
//Build the assertion
Assertion assertion = (Assertion) createSamlObject(Assertion.DEFAULT_ELEMENT_NAME); Namespace dsns = new Namespace("http://www.w3.org/2000/09/xmldsig#";, "ds"); assertion.addNamespace(dsns); Namespace xsins = new Namespace("http://www.w3.org/2001/XMLSchema-instance";, "xsi"); assertion.addNamespace(xsins); assertion.setVersion(SAMLVersion.VERSION_20);
can someone please help me how can I change the assertion tag.
Thanks & Regards
Pritam




Archive powered by MHonArc 2.6.16.

Top of Page