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