|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,TYPE})
@Inherited
public @interface SecurityDefines security constraints at module or method level. Module constraints apply to all methods, and are considered additional to the security at method level.
| Optional Element Summary | |
|---|---|
java.lang.String[] |
authorizedRoles
The list of authorized roles that can execute the current method. |
java.lang.Class<? extends SecurityChecker> |
checker
Set a custom security checker class. |
CombinationPolicy[] |
combination
Indicates how all the policies set in this annotation may be combined to conform a security policy for the current class / method. |
java.lang.String |
condition
An expression that must be evaluated to true in order to enter to the current method / module. |
boolean |
needsLogin
Check if the current type or method require login. |
public abstract boolean needsLogin
public abstract java.lang.String[] authorizedRoles
public abstract java.lang.String condition
public abstract java.lang.Class<? extends SecurityChecker> checker
public abstract CombinationPolicy[] combination
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||