com.unboundid.ldap.sdk.migrate.ldapjdk
Class LDAPRebindAuth

java.lang.Object
  extended by com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPRebindAuth
All Implemented Interfaces:
java.io.Serializable

@NotExtensible
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public class LDAPRebindAuth
extends java.lang.Object
implements java.io.Serializable

This class provides a data structure that may be used when authenticating a connection used to follow a referral.

This class is primarily intended to be used in the process of updating applications which use the Netscape Directory SDK for Java to switch to or coexist with the UnboundID LDAP SDK for Java. For applications not written using the Netscape Directory SDK for Java, the ReferralConnector class should be used instead.

See Also:
Serialized Form

Constructor Summary
LDAPRebindAuth(java.lang.String dn, java.lang.String password)
          Creates a new LDAP rebind auth object with the provided information.
 
Method Summary
 java.lang.String getDN()
          Retrieves the DN to use when authenticating.
 java.lang.String getPassword()
          Retrieves the password to use when authenticating.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPRebindAuth

public LDAPRebindAuth(java.lang.String dn,
                      java.lang.String password)
Creates a new LDAP rebind auth object with the provided information.

Parameters:
dn - The DN to use when authenticating.
password - The password to use when authenticating.
Method Detail

getDN

public java.lang.String getDN()
Retrieves the DN to use when authenticating.

Returns:
The DN to use when authenticating.

getPassword

public java.lang.String getPassword()
Retrieves the password to use when authenticating.

Returns:
The password to use when authenticating.