org.apache.shiro.authz.annotation
Annotation Type RequiresGuest


@Target(value={TYPE,METHOD})
@Retention(value=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 the RequiresUser annotation. That is, RequiresUser == !RequiresGuest, or more accurately,

RequiresGuest === subject.getPrincipal() == null.

Since:
0.9.0
See Also:
RequiresAuthentication, RequiresUser



Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.