Skip to Content.
Sympa Menu

mace-opensaml-users - Remove Namespace from Signature

Subject: OpenSAML user discussion

List archive

Remove Namespace from Signature


Chronological Thread 
  • From: anyz <>
  • To:
  • Subject: Remove Namespace from Signature
  • Date: Wed, 2 Jun 2010 16:06:47 +0500
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=oXUhjtof4Qdl5IWb2x4b/lyPpmt4XlqOy5NgxMF/hW900LbIy/3P6KgyytmRHOuAVS WG3CAtMGRu2tFf0xdDCKqjKQr6MbAtUkWlANNMHgkKP4fzP09IuMYwdAackXmr4XR56e +mk7lIzRuLa0YvBBgHzYE0R8xuKDO9lPc3zfM=

I have successfully signed assertion as given at https://spaces.internet2.edu/display/OpenSAML/OSTwoUserManJavaDSIG. The output of signed assertion is like given below:
 
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<ds:Reference URI="#ID31445821-713c-4d49-a090-26d57e3b9ecc">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="adfs ds saml xs xsi"/></ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<ds:DigestValue>qAvhr4f4/MzaLHUbXbDgwa9xWjc=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>blahblablbah</ds:SignatureValue>
<ds:KeyInfo>
 <ds:KeyValue>
  <ds:RSAKeyValue>
   <ds:Modulus>blahbalahblah</ds:Modulus>
   <ds:Exponent>AQAB</ds:Exponent>
  </ds:RSAKeyValue>
 </ds:KeyValue>
 <ds:X509Data>
  <ds:X509Certificate>blahblahblab</ds:X509Certificate>
 </ds:X509Data>
</ds:KeyInfo>
</ds:Signature>
 
Is it possible to remvoe the name space in Signature tag and hence the prefix "ds" from all the child tags. I tried creating Signature object with custom name space and prefix through builder but it didn't effect the out put. I want to remove namespace and hence prefix "ds" from all child tags.
 
Thanks



Archive powered by MHonArc 2.6.16.

Top of Page