|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.security.basic.BasicMethodSecurity
public class BasicMethodSecurity
Implementation of MethodSecurity
which checks method security based
on the RolesAllowed
annotations of our implementation methods. To do
this, it is necessary to "unwrap" proxies via the Advised
interface.
SecuritySystem
Constructor Summary | |
---|---|
BasicMethodSecurity()
|
|
BasicMethodSecurity(boolean active)
|
Method Summary | |
---|---|
void |
checkMethod(Object o,
Method m,
Principal p,
boolean hasPassword)
See MethodSecurity#checkMethod(Object, Method, Principal) |
boolean |
isActive()
See MethodSecurity.isActive() |
void |
setSessionManager(SessionManager sessionManager)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicMethodSecurity()
public BasicMethodSecurity(boolean active)
Method Detail |
---|
public void setSessionManager(SessionManager sessionManager)
public boolean isActive()
MethodSecurity.isActive()
isActive
in interface MethodSecurity
public void checkMethod(Object o, Method m, Principal p, boolean hasPassword)
MethodSecurity#checkMethod(Object, Method, Principal)
checkMethod
in interface MethodSecurity
o
- Object
on which this method will be called.m
- Method
to be called.p
- Principal
for which permissions will be checked.hasPassword
- flag if the user's session has been authenticated directly
and not via a one-time session id or similar.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta4.2.1-r8614-Beta4.2-b41
Copyright © 2009 The University of Dundee. All Rights Reserved.