Groovy Documentation

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

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

@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.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 the RequiresUser annotation.

This annotation basically ensures that org.apache.shiro.subject.Subject.org.apache.shiro.subject.Subject#isAuthenticated() isAuthenticated() === true

See the RequiresUser and org.apache.shiro.authc.RememberMeAuthenticationToken JavaDoc for an explaination of why these two states are considered different.

See Also:
RequiresUser
RequiresGuest


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

Groovy Documentation