Skip to Content.
Sympa Menu

mace-opensaml-users - Re: Serializing / Deserializing SAMLAssertions

Subject: OpenSAML user discussion

List archive

Re: Serializing / Deserializing SAMLAssertions


Chronological Thread 
  • From: Chad La Joie <>
  • To:
  • Subject: Re: Serializing / Deserializing SAMLAssertions
  • Date: Wed, 20 Jun 2007 11:41:56 -0400
  • Openpgp: id=A260F52E; url=http://pgpkeys.pca.dfn.de/pks/lookup?op=get&search=0x3F5E9E87A260F52E
  • Organization: Georgetown University

Those objects are not serializable (i.e they don't implement
Serializable). If you're using an 3rd-party tool to (like XStream) to
do the serialization you'll need to work with whatever framework the
tool provides in order to declare what fields should be serialized and how.

Christina Cunningham wrote:
> Hi,
>
> I am trying to serialize / deserialize SAMLAssertions using XStream. The
> SAMLAssertions serialize fine, but deserialization fails because the
> Log4j logger is serialized along with the assertion.
>
> I have used a work around by marking all the loggers created in the
> opensaml code as 'transient' so they won't serialize with the rest of
> the class. Is there any reason why these loggers should NOT be marked
> transient in the opensaml code base?
>
> I am currently using opensaml-1.1, but the same problem exists with the
> opensaml-2.0 code.
>
> Regards,
>
> Christina
>

--
Chad La Joie 2052-C Harris Bldg
OIS-Middleware 202.687.0124



Archive powered by MHonArc 2.6.16.

Top of Page