Jersey, Spring, Tomcat and Security Annotations

Posted by jr on Stack Overflow See other posts from Stack Overflow or by jr
Published on 2010-02-18T18:56:37Z Indexed on 2010/06/02 19:04 UTC
Read the original article Hit count: 554

I need to secure a simple jersey RESTful API in a Tomcat 6.0.24 container. I'd like to keep the authentication with Basic Authentication using the tomcat-users.xml file to define the users and roles (this is for now, like I said its small).

Now, for authorization I'd like to be able to use the JSR 250 annotations like @RolesAllowed, @PermitAll, @DenyAll, etc.

I cannot for the life of me figure out how to wire this all up together.

I really don't want to go spring-security route, since I need something very simple at the current time.

Can someone point me in the right direction.

© Stack Overflow or respective owner

Related posts about spring

Related posts about tomcat