<div dir="ltr">Hi all,<div><br></div><div><div>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).</div><div><br></div><div>Configuration.registerObjectProvider(RequestedAudiences.TYPE_NAME, new RequestedAudiencesBuilder(), new RequestedAudiencesMarshaller(), new RequestedAudiencesUnmarshaller());</div><div><br></div><div>When I try to get the extensions from SPSSODescriptor using the bellow code segment</div><div><br></div><div>List<XMLObject> extensions = spssoDescriptor.getExtensions().getUnknownXMLObjects();</div><div><br></div><div>It returns objects of the type</div><div>org.opensaml.xml.schema.impl.XSAnyImpl</div><div><br></div><div>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?</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Maduranga Siriwardena</div><div dir="ltr">Undergraduate</div><div dir="ltr">Department of Computer Science and Engineering</div><div dir="ltr">Faculty of Engineering, University of Moratuwa.</div></div></div></div></div>
</div></div>