Annotation Type RequiresGuest
-
@Target({TYPE,METHOD}) @Retention(RUNTIME) public @interface RequiresGuest
Requires the current Subject to be a "guest", that is, they are not authenticated or remembered from a previous session for the annotated class/instance/method to be accessed or invoked. This annotation is the logical inverse of theRequiresUser
annotation. That is,RequiresUser == !RequiresGuest
, or more accurately,RequiresGuest === subject.
.getPrincipal()
== null- Since:
- 0.9.0
- See Also:
RequiresAuthentication
,RequiresUser