public interface MethodSecurity
RolesAllowedannotations and replaces the security provided by an application server.
|Modifier and Type||Method and Description|
Indicates whether or not method security is active.
void checkMethod(Object obj, Method method, Principal principal, boolean hasPassword) throws ome.conditions.SecurityViolation
SecurityViolationexception if the given
Principaldoes not have the proper permissions to execute the given method. If
isActive()returns false, this method may also throw any
RuntimeExceptionto specify that it is not in an active state.
Objecton which this method will be called.
Methodto be called.
Principalfor 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.
ome.conditions.SecurityViolation- if the given pr
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.