| Modifier and Type | Field and Description |
|---|---|
| private static final Map | readOnlyContexts
Catalina context names on which writing is not allowed. |
| private static final Map | securityTokens
Security tokens repository. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if the submitted token is equal to the token
in the repository or if no token is present in the repository.
Otherwise, falseName of the Catalina context name, Object Submitted security token token)Check a submitted security token. |
| public static boolean | Returns: true if it is writable, otherwise falseName of the Catalina context name)Is the context is writable? |
| public static void | setReadOnly(Object
Name of the Catalina context name)Set whether or not a Catalina context is writable. |
| public static void | setSecurityToken(Object
Name of the Catalina context name, Object Security token token)Set a security token for a Catalina context. |
| public static void | setWritable(Object
Name of the Catalina context name, Object Security token token)Allow writing to a context. |
| public static void | unsetSecurityToken(Object
Name of the Catalina context name, Object Security token token)Remove a security token for a context. |
| readOnlyContexts | back to summary |
|---|---|
| private static final Map<Object, Object> readOnlyContexts Catalina context names on which writing is not allowed. | |
| securityTokens | back to summary |
|---|---|
| private static final Map<Object, Object> securityTokens Security tokens repository. | |
| ContextAccessController | back to summary |
|---|---|
| public ContextAccessController() | |
| checkSecurityToken | back to summary |
|---|---|
| public static boolean checkSecurityToken(Object name, Object token) Check a submitted security token. | |
| isWritable | back to summary |
|---|---|
| public static boolean isWritable(Object name) Is the context is writable?
| |
| setReadOnly | back to summary |
|---|---|
| public static void setReadOnly(Object name) Set whether or not a Catalina context is writable.
| |
| setSecurityToken | back to summary |
|---|---|
| public static void setSecurityToken(Object name, Object token) Set a security token for a Catalina context. Can be set only once. | |
| setWritable | back to summary |
|---|---|
| public static void setWritable(Object name, Object token) Allow writing to a context. | |
| unsetSecurityToken | back to summary |
|---|---|
| public static void unsetSecurityToken(Object name, Object token) Remove a security token for a context. | |