Package org.apache.naming
Class ContextAccessController
java.lang.Object
org.apache.naming.ContextAccessController
Handles the access control on the JNDI contexts.
- Author:
- Remy Maucherat
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleancheckSecurityToken(Object name, Object token) Check a submitted security token.static booleanisWritable(Object name) Is the context is writable?static voidsetReadOnly(Object name) Set whether or not a Catalina context is writable.static voidsetSecurityToken(Object name, Object token) Set a security token for a Catalina context.static voidsetWritable(Object name, Object token) Allow writing to a context.static voidunsetSecurityToken(Object name, Object token) Remove a security token for a context.
- 
Constructor Details- 
ContextAccessControllerpublic ContextAccessController()
 
- 
- 
Method Details- 
setSecurityTokenSet a security token for a Catalina context. Can be set only once.- Parameters:
- name- Name of the Catalina context
- token- Security token
 
- 
unsetSecurityTokenRemove a security token for a context.- Parameters:
- name- Name of the Catalina context
- token- Security token
 
- 
checkSecurityTokenCheck a submitted security token.- Parameters:
- name- Name of the Catalina context
- token- Submitted security token
- Returns:
- trueif the submitted token is equal to the token in the repository or if no token is present in the repository. Otherwise,- false
 
- 
setWritableAllow writing to a context.- Parameters:
- name- Name of the Catalina context
- token- Security token
 
- 
setReadOnlySet whether or not a Catalina context is writable.- Parameters:
- name- Name of the Catalina context
 
- 
isWritableIs the context is writable?- Parameters:
- name- Name of the Catalina context
- Returns:
- trueif it is writable, otherwise- false
 
 
-