Package netscape.ldap

Class LDAPRebindAuth

java.lang.Object
netscape.ldap.LDAPRebindAuth
All Implemented Interfaces:
Serializable

public class LDAPRebindAuth extends Object implements Serializable
Represents information used to authenticate the client in cases where the client follows referrals automatically. If you are defining a class that implements the LDAPRebind interface, your implementation of the LDAPRebind.getRebindAuthentication method needs to construct and return an object of this class.

For example, the following method sets up authentication information based on the LDAP server identified in the referral. Ideally, this method would be defined as part of a class implementing the LDAPRebind interface.

Version:
1.0
See Also:
  • Constructor Details

    • LDAPRebindAuth

      public LDAPRebindAuth()
    • LDAPRebindAuth

      @Deprecated public LDAPRebindAuth(String dn, String password)
      Deprecated.
      Constructs information that is used by the client for authentication when following referrals automatically.
      Parameters:
      dn - distinguished name to use for authenticating to the LDAP server during an automatic referral (if the client is set up to follow referrals automatically)
      password - password to use for authenticating to the LDAP server during an automatic referral (if the client is set up to follow referrals automatically)
  • Method Details

    • getDN

      public String getDN()
      Returns the distinguished name to be used for reauthentication, if the client is set up to follow referrals automatically.
      Returns:
      distinguished name to use when authenticating to other LDAP servers during referrals.
    • getPassword

      public String getPassword()
      Returns the password to be used for reauthentication, if the client is set up to follow referrals automatically.
      Returns:
      password to use when authenticating to other LDAP servers during referrals.