org.apache.naming
Class ContextAccessController
java.lang.Object
org.apache.naming.ContextAccessController
public class ContextAccessController
extends java.lang.Object
Handles the access control on the JNDI contexts.
Version:
- Remy Maucherat
static boolean | checkSecurityToken(Object name, Object token) - Check a submitted security token.
|
static boolean | isWritable(Object name) - Returns if a context is writable.
|
static void | setReadOnly(Object name) - Set whether or not a context is writable.
|
static void | setSecurityToken(Object name, Object token) - Set a security token for a context.
|
static void | setWritable(Object name, Object token) - Allow writing to a context.
|
static void | unsetSecurityToken(Object name, Object token) - Remove a security token for a context.
|
checkSecurityToken
public static boolean checkSecurityToken(Object name,
Object token)
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.
name
- Name of the context
isWritable
public static boolean isWritable(Object name)
Returns if a context is writable.
name
- Name of the context
setReadOnly
public static void setReadOnly(Object name)
Set whether or not a context is writable.
name
- Name of the context
setSecurityToken
public static void setSecurityToken(Object name,
Object token)
Set a security token for a context. Can be set only once.
name
- Name of the context
setWritable
public static void setWritable(Object name,
Object token)
Allow writing to a context.
name
- Name of the contexttoken
- Security token
unsetSecurityToken
public static void unsetSecurityToken(Object name,
Object token)
Remove a security token for a context.
name
- Name of the context
Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.