public interface MethodSecurity
RolesAllowed
annotations and replaces the security provided by an
application server.SecuritySystem
Modifier and Type | Method and Description |
---|---|
void |
checkMethod(java.lang.Object obj,
java.lang.reflect.Method method,
ome.system.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(java.lang.Object obj, java.lang.reflect.Method method, ome.system.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