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
SecurityViolation exception if the given
Principal does 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 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.SecurityViolation
- if the given pr
Version: 5.3.5-ice35-b73
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.