org.apache.naming
クラス ContextAccessController

java.lang.Object
  |
  +--org.apache.naming.ContextAccessController

public class ContextAccessController
extends java.lang.Object

Handles the access control on the JNDI contexts.

バージョン:
$Revision: 1.3 $ $Date: 2001/06/11 22:44:03 $
作成者:
Remy Maucherat

コンストラクタの概要
ContextAccessController()
           
 
メソッドの概要
static boolean checkSecurityToken(java.lang.Object name, java.lang.Object token)
          Check a submitted security token.
static boolean isWritable(java.lang.Object name)
          Returns if a context is writable.
static void setReadOnly(java.lang.Object name)
          Set whether or not a context is writable.
static void setSecurityToken(java.lang.Object name, java.lang.Object token)
          Set a security token for a context.
static void setWritable(java.lang.Object name, java.lang.Object token)
          Allow writing to a context.
static void unsetSecurityToken(java.lang.Object name, java.lang.Object token)
          Remove a security token for a context.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ContextAccessController

public ContextAccessController()
メソッドの詳細

setSecurityToken

public static void setSecurityToken(java.lang.Object name,
                                    java.lang.Object token)
Set a security token for a context. Can be set only once.
パラメータ:
name - Name of the context
context - Security token

unsetSecurityToken

public static void unsetSecurityToken(java.lang.Object name,
                                      java.lang.Object token)
Remove a security token for a context.
パラメータ:
name - Name of the context
context - Security token

checkSecurityToken

public static boolean checkSecurityToken(java.lang.Object name,
                                         java.lang.Object token)
Check a submitted security token. The submitted token must be equal to the token present in the repository. If no token is present for the context, then returns true.
パラメータ:
name - Name of the context
context - Submitted security token

setWritable

public static void setWritable(java.lang.Object name,
                               java.lang.Object token)
Allow writing to a context.
パラメータ:
name - Name of the context
token - Security token

setReadOnly

public static void setReadOnly(java.lang.Object name)
Set whether or not a context is writable.
パラメータ:
name - Name of the context

isWritable

public static boolean isWritable(java.lang.Object name)
Returns if a context is writable.
パラメータ:
name - Name of the context


Copyright ? 2000-2001 Apache Software Foundation. All Rights Reserved.