|
||||||||||
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)
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) 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.
ome.conditions.SecurityViolation
- if the given pr
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.