opensamlV3 compatibility question

Tom Zeller tzeller at dragonacea.biz
Tue Feb 16 11:37:06 EST 2016


> On Feb 15, 2016, at 11:26 AM, Francesco Barcellini <fbarcellini at intesigroup.com> wrote:
> 
> Hello,
> 
> I used opensaml V2 and I'm trying to migrate to V3 version.  
> 
> After library migration the following java code did not compile;
> 
> SAMLMessageDecoder decoder = new HTTPRedirectDeflateDecoder();     
> BasicSAMLMessageContext messageContext = new BasicSAMLMessageContext();
> messageContext.setInboundMessageTransport(new  HttpServletRequestAdapter(req));
> 
> because the compiler didn't find the classes BasicSAMLMessageContext and HttpServletRequestAdapter.
> 
> As declared in this url
> 
> http://shibboleth.net/pipermail/announce/2015-May/000112.html
> 
> the "compatibility between V2 and V3 is extremely substantial".
> 
> Starting with new project that need a migration from old V2 libraries to new V3 libraries I would be "extremely" 
> sure that all the V2 classes are presents in V3 packages.  Is this guarantee?

No, all V2 classes are not present in V3.

> So, about my example code where is my error?

It’s not obvious to me. I think the V2 BasicSAMLMessageContext was “broken up” into multiple BaseContext classes in opensaml-saml-api’s o.o.saml.common.messaging.context package. I can be wrong though.


More information about the dev mailing list