public class ContextAccessController extends Object
| Constructor and Description |
|---|
ContextAccessController() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static void setSecurityToken(Object name, Object token)
name - Name of the contexttoken - Security tokenpublic static void unsetSecurityToken(Object name, Object token)
name - Name of the contexttoken - Security tokenpublic static boolean checkSecurityToken(Object name, Object token)
name - Name of the contexttoken - Submitted security tokenpublic static void setWritable(Object name, Object token)
name - Name of the contexttoken - Security tokenpublic static void setReadOnly(Object name)
name - Name of the contextpublic static boolean isWritable(Object name)
name - Name of the contextCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.