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)
Is the 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 tokentrue
if the submitted token is equal to the token
in the repository or if no token is present in the repository.
Otherwise, false
public 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 contexttrue
if it is writable, otherwise false
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.