public class BasicMethodSecurity extends Object implements MethodSecurity
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 and Description |
---|
BasicMethodSecurity() |
BasicMethodSecurity(boolean active) |
Modifier and Type | Method and Description |
---|---|
void |
checkMethod(Object o,
Method m,
Principal p,
boolean hasPassword)
See
MethodSecurity#checkMethod(Object, Method, Principal) |
boolean |
isActive()
|
void |
setSessionManager(SessionManager sessionManager) |
public BasicMethodSecurity()
public BasicMethodSecurity(boolean active)
public void setSessionManager(SessionManager sessionManager)
public boolean 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.
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.