Skip to Content.
Sympa Menu

mace-opensaml-users - Re: The EncryptedID of a SubjectConfirmation is NOT marshalled

Subject: OpenSAML user discussion

List archive

Re: The EncryptedID of a SubjectConfirmation is NOT marshalled


Chronological Thread 
  • From: Chad La Joie <>
  • To:
  • Subject: Re: The EncryptedID of a SubjectConfirmation is NOT marshalled
  • Date: Tue, 11 Mar 2008 18:16:37 +0100
  • Organization: SWITCH

yeah, I meant the code where you're creating the assertion and adding the encrypted id.


wrote:
At this point the assertion object has the EncryptedID of a
SubjectConfirmation set.

This is the code I use to marshall the assertion

// Get the marshaller factory
MarshallerFactory marshallerFactory =
Configuration.getMarshallerFactory();

// Get the assertion marshaller
Marshaller marshaller = marshallerFactory.getMarshaller(assertion);

// Marshall the Assertion
Element assertionElement = marshaller.marshall(assertion);

ByteArrayOutputStream byteArrayOutputStream = new
ByteArrayOutputStream();

DOMImplementationRegistry registry =
DOMImplementationRegistry.newInstance();

DOMImplementationLS impl =
(DOMImplementationLS)registry.getDOMImplementation("LS");

LSSerializer writer = impl.createLSSerializer();
LSOutput output = impl.createLSOutput();
output.setByteStream(byteArrayOutputStream);
writer.write(assertionElement, output);

I then get assertion XML document from the byteArrayOutputStream and I can
see that there is no EncryptedID element.

If you would like me to post any other areas of code let me know.

Thanks

Regards

Matthew Webb

--
SWITCH
Serving Swiss Universities
--------------------------
Chad La Joie, Software Engineer, Security
Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
,
http://www.switch.ch




Archive powered by MHonArc 2.6.16.

Top of Page