mace-opensaml-users - RE: [OpenSAML] Building AttributeType
Subject: OpenSAML user discussion
List archive
- From: "Rachana Ananthakrishnan" <>
- To: <>
- Subject: RE: [OpenSAML] Building AttributeType
- Date: Thu, 8 May 2008 10:49:26 -0500
Thanks, that seems applicable only to the AttributeValue to add. I have that
fixed to use builder of the type.
But, in the example on that webpage, how is this built?
// Normally built Attribute object
Attribute attribute;
The NPE I am seeing is with building the Attribute object, not the
AttributeValue.
If there are samples I should look at, I would appreciate a pointer.
Thanks,
Rachana
> -----Original Message-----
> From: Chad La Joie
> [mailto:]
>
> Sent: Thursday, May 08, 2008 9:46 AM
> To:
>
> Subject: Re: [OpenSAML] Building AttributeType
>
> https://spaces.internet2.edu/display/OpenSAML/OSTwoUsrManJavaAnyTypes
>
> Rachana Ananthakrishnan wrote:
> > Hi,
> >
> > I have the following code to create attributes with some
> string value, but
> > end up with AttributeTypeImplBuilder ends up being null.
> >
> > Here are relevant code snippets:
> >
> > import org.opensaml.Configuration;
> > static XMLObjectBuilderFactory builderFactory;
> > static {
> > try {
> > org.opensaml.DefaultBootstrap.bootstrap();
> > } catch (Exception e) {
> > // FIXME: handle exception better
> > System.err.println(e);
> > }
> > builderFactory = Configuration.getBuilderFactory();
> > System.out.println("Builder factory " +
> (builderFactory == null));
> > }
> >
> > // attribute builder is null here.
> > AttributeTypeImplBuilder attributeBuilder =
> (AttributeTypeImplBuilder)
> >
> > builderFactory.getBuilder(AttributeType.DEFAULT_ELEMENT_NAME);
> >
> > Is there any additional initialization that is required?
> >
> > Thanks,
> > Rachana
> >
>
> --
> SWITCH
> Serving Swiss Universities
> --------------------------
> Chad La Joie, Software Engineer, Security
> Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
> phone +41 44 268 15 75, fax +41 44 268 15 68
> ,
> http://www.switch.ch
>
>
- Building AttributeType, Rachana Ananthakrishnan, 05/08/2008
- Re: [OpenSAML] Building AttributeType, Chad La Joie, 05/08/2008
- RE: [OpenSAML] Building AttributeType, Rachana Ananthakrishnan, 05/08/2008
- Re: [OpenSAML] Building AttributeType, Brent Putman, 05/08/2008
- RE: [OpenSAML] Building AttributeType, Rachana Ananthakrishnan, 05/08/2008
- Re: [OpenSAML] Building AttributeType, Brent Putman, 05/08/2008
- RE: [OpenSAML] Building AttributeType, Rachana Ananthakrishnan, 05/08/2008
- Re: [OpenSAML] Building AttributeType, Brent Putman, 05/08/2008
- RE: [OpenSAML] Building AttributeType, Rachana Ananthakrishnan, 05/08/2008
- Re: [OpenSAML] Building AttributeType, Brent Putman, 05/08/2008
- RE: [OpenSAML] Building AttributeType, Rachana Ananthakrishnan, 05/08/2008
- Re: [OpenSAML] Building AttributeType, Chad La Joie, 05/08/2008
Archive powered by MHonArc 2.6.16.