Annotation Interface RequiresAuthentication


@Target({TYPE,METHOD}) @Retention(RUNTIME) public @interface RequiresAuthentication
The RequiresAuthentication annotation requires the current Subject to have been authenticated during their current session for the annotated class/instance/method to be accessed or invoked.

Difference to @RequiresUser is, that RequiresUser check if the subject is either authenticated or remembered (by RememberMe cookie).