Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Multiple Security Handler's

Hi,
I am using Jetty for WebServer implementation and currently using only Form Authentication for the security. The way that is done is by creating a ConstraintSecurityHandler with authenticator as FormAuthenticator and providing own LoginService with it. Then later setting this ConstraintSecurityHandler as Securityhandler in ServletContextHandler. However now I want to extend the support to SPNEGO authentication as well. But I want webserver to support both the authentication type (Form / SPNEGO) at same time. Since we can set only one security handler inside ServletContextHandler is there a way to achieve multiple security handlers ? Please advice.

Note: I am trying to create a wrapperhandler which will compose 2 security handlers. Later setting this wrapperHandler as security handler of ServletContextHandler. And inside handle method of wrapperHandler deciding which security handler to use for the request. But I am not yet successful in doing this.

--
Regards,
Sorabh 

Back to the top