com.retrogui.dualrpc.common
Interface IMethodAccessControl
- All Known Implementing Classes:
- NullMethodAccessControl
- public interface IMethodAccessControl
Called by dispatcher to determine whether a person or entity is allowed to
execute a specified handler method. WARNING: The hasMethodAccess() method
MUST BE VERY FAST and thread safe because every call to a handler method
goes through it.
|
Method Summary |
boolean |
hasMethodAccess(java.lang.String className,
java.lang.String methodName,
javax.security.auth.login.LoginContext loginContext)
Called by dispatcher to determine if specified handler method may be
called by the user or entity. |
hasMethodAccess
public boolean hasMethodAccess(java.lang.String className,
java.lang.String methodName,
javax.security.auth.login.LoginContext loginContext)
- Called by dispatcher to determine if specified handler method may be
called by the user or entity. Generally this method compares a Subject's
Principals against an access list of roles for a method. Note that the
LoginContext may be null if the user hasn't logged in yet. This means that
you should unprotect the login and handshake methods that normally will be
called at startup. WARNING: The hasMethodAccess() method MUST BE VERY FAST
because every call to a handler method goes through it.
- Parameters:
className - methodName - loginContext -
- Returns: