Skip to Content.
Sympa Menu

mace-opensaml-users - Re: [OpenSAML] Developing Entensions

Subject: OpenSAML user discussion

List archive

Re: [OpenSAML] Developing Entensions


Chronological Thread 
  • From: Deena Gurajala <>
  • To:
  • Subject: Re: [OpenSAML] Developing Entensions
  • Date: Tue, 3 Nov 2009 13:30:40 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Ym1qXacfIZR/6P54/v2KIqY3NWKy6rmX0BSZ4q4sLEdOHpcp7Cj3D1iOiD+MzlzBMR jmldJ1DAFwoOs6eS1gjfv9Lbici2WsMSd3rdzt/rXWgS3UZm8McZUNob1Hpp3u0o5XFa Fw72iySa1RQ3TPWRsadi1UwMmjsN8ez1sFbZE=

 Extensions extens=new ExtensionsBuilder().buildObject();

Is it the correct way to build an extension. Because the prefix is coming as md and name space is pointing to Metadata Descriptor schema name space.

On Tue, Nov 3, 2009 at 1:15 PM, Brent Putman <> wrote:


Deena Gurajala wrote:
> I figured out that I have to write a custom schema for my extensions.
> They way I did it is.
>
> -write a custom schema.

Yes, you probably should have a schema for your custom stuff.


> - Use JAXB to marshal the JAVA to XML DOM.
> -Then set it o Extensions using setDOM method.
>

No, not really.  JAXB is not really a complimentary technology to
OpenSAML.  They are both Java-XML binding approaches.  Use one or the
other, but probably not both.



>
>
>            Extensions extens=new ExtensionsBuilder().buildObject();
>
>             extens.setDOM(new
> DocumentGenerator().generate().getDocumentElement());

No, definitely do not use the setDOM method on the XMLObjects.   That is
used by other components withing the library (marshallers and
unmarshallers) to cache the DOM representation of the XMLObject, it is
not really intended for use via the public API.   You'll get
unpredictable results doing that.






Archive powered by MHonArc 2.6.16.

Top of Page