hunt.shiro.authz.annotation.RequiresRoles

Undocumented in source.

Members

Interfaces

RequiresRoles
interface RequiresRoles

Requires the currently executing {@link hunt.shiro.subject.Subject Subject} to have all of the specified roles. If they do not have the role(s), the method will not be executed and an {@link hunt.shiro.authz.AuthorizationException AuthorizationException} is thrown. <p/> For example, <p/> <code>&#64;RequiresRoles("aRoleName");<br/> void someMethod();</code> <p/> means <tt>someMethod()</tt> could only be executed by subjects who have been assigned the 'aRoleName' role.

Meta