Package org.apache.naming
Class ContextAccessController
- java.lang.Object
- 
- org.apache.naming.ContextAccessController
 
- 
 public class ContextAccessController extends java.lang.ObjectHandles the access control on the JNDI contexts.- Author:
- Remy Maucherat
 
- 
- 
Constructor SummaryConstructors Constructor Description ContextAccessController()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheckSecurityToken(java.lang.Object name, java.lang.Object token)Check a submitted security token.static booleanisWritable(java.lang.Object name)Is the context is writable?static voidsetReadOnly(java.lang.Object name)Set whether or not a Catalina context is writable.static voidsetSecurityToken(java.lang.Object name, java.lang.Object token)Set a security token for a Catalina context.static voidsetWritable(java.lang.Object name, java.lang.Object token)Allow writing to a context.static voidunsetSecurityToken(java.lang.Object name, java.lang.Object token)Remove a security token for a context.
 
- 
- 
- 
Method Detail- 
setSecurityTokenpublic static void setSecurityToken(java.lang.Object name, java.lang.Object token)Set a security token for a Catalina context. Can be set only once.- Parameters:
- name- Name of the Catalina context
- token- Security token
 
 - 
unsetSecurityTokenpublic static void unsetSecurityToken(java.lang.Object name, java.lang.Object token)Remove a security token for a context.- Parameters:
- name- Name of the Catalina context
- token- Security token
 
 - 
checkSecurityTokenpublic static boolean checkSecurityToken(java.lang.Object name, java.lang.Object token)Check 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
 
 - 
setWritablepublic static void setWritable(java.lang.Object name, java.lang.Object token)Allow writing to a context.- Parameters:
- name- Name of the Catalina context
- token- Security token
 
 - 
setReadOnlypublic static void setReadOnly(java.lang.Object name) Set whether or not a Catalina context is writable.- Parameters:
- name- Name of the Catalina context
 
 - 
isWritablepublic static boolean isWritable(java.lang.Object name) Is the context is writable?- Parameters:
- name- Name of the Catalina context
- Returns:
- trueif it is writable, otherwise- false
 
 
- 
 
-