|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.acsinet_solutions.cetia4.controller.security.MethodSecurityChecker
public final class MethodSecurityChecker
This class checks security needs of a method, based on it's security annotations and those of it's class.
| Constructor Summary | |
|---|---|
MethodSecurityChecker(java.lang.Class<? extends RestModule> c,
java.lang.reflect.Method method)
Public constructor, builds this class from the configured annotations at class and method level. |
|
| Method Summary | |
|---|---|
void |
checkAccess(RequestContext context)
Check if access to the current method on the given request can be performed; thrown an exception if not. |
boolean |
needsLogIn()
Say if this method or the methods on this class need log in. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodSecurityChecker(java.lang.Class<? extends RestModule> c,
java.lang.reflect.Method method)
| Method Detail |
|---|
public final boolean needsLogIn()
SecurityChecker
needsLogIn in interface SecurityChecker
public final void checkAccess(RequestContext context)
throws AccessException
SecurityChecker
checkAccess in interface SecurityCheckerAccessException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||