Unmarshalling saml metadata extensions
Maduranga Siriwardena
maduranga.siriwardena at gmail.com
Thu May 21 07:54:23 EDT 2015
Hi all,
I have created some extensions in saml metadata. I'm trying to unmarshall
the xml using opensaml2. I have created the interface, implementation
class, builder, marshaller and unmarshaller of the extension. Then I
registered the object providers using like this (my extension is
RequestedAudiences).
Configuration.registerObjectProvider(RequestedAudiences.TYPE_NAME, new
RequestedAudiencesBuilder(), new RequestedAudiencesMarshaller(), new
RequestedAudiencesUnmarshaller());
When I try to get the extensions from SPSSODescriptor using the bellow code
segment
List<XMLObject> extensions =
spssoDescriptor.getExtensions().getUnknownXMLObjects();
It returns objects of the type
org.opensaml.xml.schema.impl.XSAnyImpl
I want to get an object of type XMLObject so that I can cast it into the
the actual extension implementation class I have created. Can anyone
suggest what I am doing wrong?
--
Maduranga Siriwardena
Undergraduate
Department of Computer Science and Engineering
Faculty of Engineering, University of Moratuwa.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20150521/58a99eb3/attachment.html>
More information about the dev
mailing list