|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MethodSecurity
Interface which allows security interceptors to check if a method should be
executable for a given user. This determination is most likely based on
RolesAllowed
annotations and replaces the security provided by an
application server.
SecuritySystem
Method Summary | |
---|---|
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. |
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: 4.3.4-dbcbce5a-b4
Copyright © 2009 The University of Dundee. All Rights Reserved.