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.