-
Apr 12th, 2009, 01:33 PM
#1
How to handle authorization with interceptor and annotation
I have some authorization code which I used in Struts2 to handle authorization.
Basically, I annotate a method with SecuredRoles(roles="a,b,c") and the Struts 2's interceptor checks that against the HttpServletRequest's isUserInRole() method.
In Spring, I have seen that I can use interceptors implementing the HandlerInterceptor interface. However, I have no clue how to reach the annotation in my controller's method.
Can anyone shed some light on this and explain me how I can get to the annotations?
Thank you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules