Skip to Content.
Sympa Menu

mace-opensaml-users - RE: clone an XMLObject

Subject: OpenSAML user discussion

List archive

RE: clone an XMLObject


Chronological Thread 
  • From: "Scott Cantor" <>
  • To: <>
  • Subject: RE: clone an XMLObject
  • Date: Mon, 18 Feb 2008 23:08:17 -0500
  • Organization: The Ohio State University

> > Is there a better or prescribed way? Are there any negative side-
> > effects (besides performance) to the approach above?

I forgot to add...it's actually fairly important that a clone operation
*try* to do so using the DOM + unmarshall sequence because if the object is
signed, the chances of preserving signature integrity are 100% that way vs.
something quite a bit less than 100% with an actual deep copy of only the
objects around the DOM.

So if you were, for example, trying to clone an assertion (which you will if
you're not already), you'd have to do it this way anyway (whether by hand or
calling some method that internally just did the same thing).

-- Scott





Archive powered by MHonArc 2.6.16.

Top of Page