@java.lang.annotation.Target(value: [ElementType.METHOD, ElementType.TYPE]) @java.lang.annotation.Retention(value: RetentionPolicy.RUNTIME) @java.lang.annotation.Inherited @java.lang.annotation.Documented @interface Secured
Annotation for Controllers at the class level or per-action, defining what roles are required for the entire controller or action.
| Type | Name and Description |
|---|---|
static java.lang.String |
ANY_METHODDefault value for httpMethod(). |
| Type Params | Return Type | Name and description |
|---|---|---|
|
abstract java.lang.Class<?> |
closure()Optional attribute to specify a closure that will be evaluated to decide if access should be allowed. |
|
abstract java.lang.String |
httpMethod()Optional attribute to specify the HTTP method required. |
|
abstract java.lang.String[] |
value()Defines the security configuration attributes (e.g. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Optional attribute to specify a closure that will be evaluated to decide if access should be allowed.
Optional attribute to specify the HTTP method required.
Defines the security configuration attributes (e.g. ROLE_USER, ROLE_ADMIN, IS_AUTHENTICATED_REMEMBERED, etc.)