org.apache.directory.server.ldap.handlers.bind
Class GetBindDn

java.lang.Object
  extended by org.apache.directory.server.ldap.handlers.bind.GetBindDn
All Implemented Interfaces:
java.io.Serializable, ContextOperation

public class GetBindDn
extends java.lang.Object
implements ContextOperation

Encapsulates the action of looking up a user in an embedded ApacheDS DIT.

Version:
$Rev: 494161 $, $Date: 2007-01-08 11:39:36 -0800 (Mon, 08 Jan 2007) $
Author:
Apache Directory Project
See Also:
Serialized Form

Constructor Summary
GetBindDn(java.lang.String username)
          Creates the action to be used against the embedded ApacheDS DIT.
 
Method Summary
 java.lang.Object execute(javax.naming.directory.DirContext ctx, javax.naming.Name base)
          Note that the base is a relative path from the existing context.
 java.lang.String getBindDn()
          Accessor method for retrieving the DN for the username.
 java.lang.String getUserPassword()
          Accessor method for retrieving the user's password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetBindDn

public GetBindDn(java.lang.String username)
Creates the action to be used against the embedded ApacheDS DIT.

Parameters:
username - The username to search for in the directory.
Method Detail

getBindDn

public java.lang.String getBindDn()
Accessor method for retrieving the DN for the username.

Returns:
The DN to bind the user as.

getUserPassword

public java.lang.String getUserPassword()
Accessor method for retrieving the user's password.

Returns:
The user's password.

execute

public java.lang.Object execute(javax.naming.directory.DirContext ctx,
                                javax.naming.Name base)
Note that the base is a relative path from the existing context. It is not a DN.

Specified by:
execute in interface ContextOperation


Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.