public interface MethodSecurity
RolesAllowedannotations and replaces the security provided by an application server.
void checkMethod(Object obj, Method method, Principal principal, boolean hasPassword) throws 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.
SecurityViolation- if the given pr
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.