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


@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
public @interface RequiresUser

Requires the current Subject to be an application user for the annotated class/instance/method to be accessed or invoked. This is less restrictive than the RequiresAuthentication annotation.

Shiro defines a "user" as a Subject that is either "remembered" or authenticated:

See the RememberMeAuthenticationToken JavaDoc for an explaination of why these two states are considered different.

Since:
0.9.0
See Also:
RequiresAuthentication, RequiresGuest



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