|
||||||||||
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)
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)
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.