Groovy Documentation

griffon.plugins.shiro.annotation
[Java] Annotation Type RequiresGuest

java.lang.Object
  griffon.plugins.shiro.annotation.RequiresGuest

@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.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.org.apache.shiro.subject.Subject#getPrincipal() getPrincipal() == null.

See Also:
RequiresAuthentication
RequiresUser


Method Summary
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Groovy Documentation