0

I have a SAML assertion in an XML file. What I need to do is to encrypt it to match the EncryptedAssertion specification of the SAML2.0.

Now I cannot use the OpenSAML library which would make the life easier. I will need to write something myself from the scratch.

I am not getting any tutorial on how to encrypt an XML (e.g. the SAML assertion) file in Java that will follow the xmlenc specification.

Any help will be highly appreciated.

Thanks in advance.

Ripul

Ripul
  • 1,271
  • 4
  • 15
  • 18
  • If you can't use it directly even if the license is the Apache one which not limiting, try to look at OpenSaml2 source code for inspiration: http://svn.shibboleth.net/view/java-opensaml2/trunk/src/main/java/org/opensaml/saml2/encryption/Encrypter.java?view=markup – LRA Aug 18 '13 at 13:12
  • I was looking for a quick start-up. But looking at the code of the OpenSAML and devising own utility methods seem to be the only viable option. Thanks for pointing out that. – Ripul Aug 18 '13 at 14:13
  • 1
    Why cant you use OpenSAML? – Stefan Rasmusson Aug 19 '13 at 14:03

0 Answers0