Unmarshalling saml metadata extensions
Brent Putman
putmanb at georgetown.edu
Thu May 21 12:30:39 EDT 2015
On 5/21/15 7:54 AM, Maduranga Siriwardena wrote:
>
> Configuration.registerObjectProvider(RequestedAudiences.TYPE_NAME,
> new RequestedAudiencesBuilder(), new RequestedAudiencesMarshaller(),
> new RequestedAudiencesUnmarshaller());
>
Looking at the XML you posted later, I think the literal problem is
very simple: You are registering your provider classes with presumably
a *type* QName RequestedAudiences.TYPE_NAME (although I don't know what
that constant actually has for a value) - but in the XML your elements
aren't carrying xsi:type. So you need to register the elements with
the *element* name's QName.
Most XML you deal with in SAML doesn't usually carry xsi:type, so the
vast majority case is lookup by element name. However, if you look at
the core OpenSAML providers, you'll see that we typically register the
providers under both the element name and the type name, just in case.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20150521/02c42d6c/attachment.html>
More information about the dev
mailing list