Unmarshalling saml metadata extensions
Maduranga Siriwardena
maduranga.siriwardena at gmail.com
Thu May 21 08:08:53 EDT 2015
This is a sample of my XML. I have several extensions. As an example I
selected RequestedAudiences.
<?xml version="1.0" encoding="UTF-8"?><md:EntityDescriptor
xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" entityID="test2">
<md:SPSSODescriptor AuthnRequestsSigned="true"
WantAssertionsSigned="true">
<md:Extensions>
<wso2:useFullyQualifiedUsername
xmlns:wso2="org.wso2">true</wso2:useFullyQualifiedUsername>
<wso2:DoSignResponse xmlns:wso2="org.wso2">true</wso2:DoSignResponse>
<wso2:IdPInitSSOEnabled
xmlns:wso2="org.wso2">true</wso2:IdPInitSSOEnabled>
<wso2:RequestedAudiences xmlns:wso2="org.wso2">
<wso2:audience>Audience</wso2:audience>
</wso2:RequestedAudiences>
<wso2:RequestedRecipients xmlns:wso2="org.wso2">
<wso2:recipient>Recipient</wso2:recipient>
</wso2:RequestedRecipients>
</md:Extensions>
<md:SingleLogoutService
Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="
https://test.com"/>
<md:NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress</md:NameIDFormat>
<md:AssertionConsumerService
Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="
https://test.com" index="0"/>
</md:SPSSODescriptor>
</md:EntityDescriptor>
If I get the Map of Unmarshallers, I can find an unmarsheller with the key
of {org.wso2}RequestedRecipientsType.
On Thu, May 21, 2015 at 5:31 PM, Cantor, Scott <cantor.2 at osu.edu> wrote:
> On 5/21/15, 11:54 AM, "Maduranga Siriwardena"
> <maduranga.siriwardena at gmail.com> wrote:
>
>
>
> >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).
>
> And what does the XML look like?
>
> >It returns objects of the type
> >org.opensaml.xml.schema.impl.XSAnyImpl
>
> That means your classes aren't being registered or don't correspond to the
> XML on the wire.
>
> -- Scott
>
> --
> To unsubscribe from this list send an email to
> dev-unsubscribe at shibboleth.net
>
--
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/6fb26295/attachment.html>
More information about the dev
mailing list