mace-opensaml-users - Re: How do you create an instance of a org.opensaml.saml2.core.BaseID
Subject: OpenSAML user discussion
List archive
- From: Brent Putman <>
- To:
- Subject: Re: How do you create an instance of a org.opensaml.saml2.core.BaseID
- Date: Mon, 25 Feb 2008 12:55:23 -0500
Hi,
Scott just beat me to it, but ... Yeah, you can't build a BaseID directly "as-is" because its type as specified in the schema (BaseIDAbstractType) is abstract. In order to have a BaseID element, you have to derive a new concrete type with whatever additions to the content model you need, and then extend the (also abstract) impl, marshaller and unmarshaller classes in OpenSAML accordingly. (Actually just noticed that the marshaller/unmarshaller aren't currently abstract, I will fix shortly). And then create a custom builder which builds a BaseID element, with your new BaseID type impl and with the right explicit xsi:type. See the recent list theads on the KeyInfoConfirmationDataType and metadata extensions, which are somewhat similar.
--Brent
wrote:
Hi
I have downloaded the latest code.
But there is not a BaseIDBuilder class (like there are for other classes) to
build a BaseID object and the BaseIdImpl class is abstract.
How should I created an instance of a BaseID class?
Thanks
Regards
Matthew Webb
- How do you create an instance of a org.opensaml.saml2.core.BaseID, matthew . webb, 02/25/2008
- RE: How do you create an instance of a org.opensaml.saml2.core.BaseID, Scott Cantor, 02/25/2008
- Re: How do you create an instance of a org.opensaml.saml2.core.BaseID, Brent Putman, 02/25/2008
Archive powered by MHonArc 2.6.16.