| java.lang.Object org.apache.naming.ContextAccessController
ContextAccessController | public class ContextAccessController (Code) | | Handles the access control on the JNDI contexts.
author: Remy Maucherat version: $Revision: 1.3 $ $Date: 2001/06/11 22:44:03 $ |
checkSecurityToken | public static boolean checkSecurityToken(Object name, Object token)(Code) | | Check a submitted security token. The submitted token must be equal to
the token present in the repository. If no token is present for the
context, then returns true.
Parameters: name - Name of the context Parameters: context - Submitted security token |
isWritable | public static boolean isWritable(Object name)(Code) | | Returns if a context is writable.
Parameters: name - Name of the context |
setReadOnly | public static void setReadOnly(Object name)(Code) | | Set whether or not a context is writable.
Parameters: name - Name of the context |
setSecurityToken | public static void setSecurityToken(Object name, Object token)(Code) | | Set a security token for a context. Can be set only once.
Parameters: name - Name of the context Parameters: context - Security token |
setWritable | public static void setWritable(Object name, Object token)(Code) | | Allow writing to a context.
Parameters: name - Name of the context Parameters: token - Security token |
unsetSecurityToken | public static void unsetSecurityToken(Object name, Object token)(Code) | | Remove a security token for a context.
Parameters: name - Name of the context Parameters: context - Security token |
|
|