Skip to Content.
Sympa Menu

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

Subject: OpenSAML user discussion

List archive

Re: Re: The EncryptedID of a SubjectConfirmation is NOT marshalled


Chronological Thread 
  • From:
  • To:
  • Subject: Re: Re: The EncryptedID of a SubjectConfirmation is NOT marshalled
  • Date: Tue, 11 Mar 2008 13:13:47 -0400 (EDT)

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



Archive powered by MHonArc 2.6.16.

Top of Page