org.seasar.tuigwaa.security
クラス DirectoryUtils

java.lang.Object
  拡張org.seasar.tuigwaa.security.DirectoryUtils

public class DirectoryUtils
extends Object

作成者:
someda

コンストラクタの概要
DirectoryUtils()
           
 
メソッドの概要
static String buildSuffix(String suffix, String searchBase, boolean isCommaStart, boolean full)
          Returns suffix for given suffix string and searchBase.
static void closeQuietly(Context ctx)
           
static String getAbsoluteDN(String name, String prefix, String suffix, String searchBase)
          Returns suffix for given suffix string and searchBase.
static String getDN(String name, String prefix, String suffix, String searchBase, boolean absolute)
           
static String getRDN(String dn, String searchBase)
          Returns RDN from search base.
static void shutdown(Hashtable env)
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

DirectoryUtils

public DirectoryUtils()
メソッドの詳細

getDN

public static final String getDN(String name,
                                 String prefix,
                                 String suffix,
                                 String searchBase,
                                 boolean absolute)

getAbsoluteDN

public static final String getAbsoluteDN(String name,
                                         String prefix,
                                         String suffix,
                                         String searchBase)
Returns suffix for given suffix string and searchBase.

パラメータ:
name - represents key value of the DN
suffix - represents attributes between searchBase and absolute DN, like ou=users
searchBase - represents search base, like dc=example,dc=com.
戻り値:
suffix of given searchBase and search filter

buildSuffix

public static final String buildSuffix(String suffix,
                                       String searchBase,
                                       boolean isCommaStart,
                                       boolean full)
Returns suffix for given suffix string and searchBase.

パラメータ:
suffix - represents attributes between searchBase and absolute DN, like ou=users
searchBase - represents search base, like dc=example,dc=com.
isCommaStart - if true, appends comma at the start.
full - if true and searchBase is not null, appends searchBase at the end.
戻り値:
suffix of given searchBase and search filter

getRDN

public static final String getRDN(String dn,
                                  String searchBase)
Returns RDN from search base. For example, if dn is "uid=user,ou=users,dc=example,dc=com" and searchBase is "dc=example,dc=com", returns "uid=user,ou=users".

パラメータ:
dn - represents absolute DN, like uid=user,ou=users,dc=example,dc=com
searchBase - represents search base, like dc=example,dc=com
戻り値:
RDN

shutdown

public static final void shutdown(Hashtable env)

closeQuietly

public static final void closeQuietly(Context ctx)


Copyright © 2005-2006 The Seasar Foundation and the others.. All Rights Reserved.