Skip to Content.
Sympa Menu

mace-opensaml-users - change the tag of SAML assertion

Subject: OpenSAML user discussion

List archive

change the tag of SAML assertion


Chronological Thread 
  • From:
  • To:
  • Subject: change the tag of SAML assertion
  • Date: Mon, 25 Jan 2010 04:06:13 -0500 (EST)

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