Annotation Type RequiresAuthentication
-
@Target({TYPE,METHOD}) @Retention(RUNTIME) public @interface RequiresAuthentication
Requires the current Subject to have been authenticated during their current session for the annotated class/instance/method to be accessed or invoked. This is more restrictive than theRequiresUserannotation. This annotation basically ensures thatSee thesubject.isAuthenticated()=== trueRequiresUserandRememberMeAuthenticationTokenJavaDoc for an explanation of why these two states are considered different.- Since:
- 0.9.0
- See Also:
RequiresUser,RequiresGuest