Annotation Type RolesRequired


@Inherited @Documented @Target(TYPE) @Retention(RUNTIME) public @interface RolesRequired

Adds a JAASRoles condition to the current rule. This allows to restrict the rule to users with the given role. Rewrite uses HttpServletRequest#isUserInRole(String) for checking the roles.

 @Join(path = "/admin/users", to = "/admin/user-list.html")
 @RolesRequired("admin")
 public class MyClass {
 
 }
 
Author:
Christian Kaltepoth
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The roles required for the rule to match.
  • Element Details

    • value

      String[] value
      The roles required for the rule to match.