Package netscape.ldap
Class LDAPRebindAuth
- java.lang.Object
-
- netscape.ldap.LDAPRebindAuth
-
- All Implemented Interfaces:
java.io.Serializable
public class LDAPRebindAuth extends java.lang.Object implements java.io.Serializable
Represents information used to authenticate the client in cases where the client follows referrals automatically. If you are defining a class that implements theLDAPRebind
interface, your implementation of theLDAPRebind.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:
LDAPRebind
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LDAPRebindAuth()
LDAPRebindAuth(java.lang.String dn, java.lang.String password)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDN()
Returns the distinguished name to be used for reauthentication, if the client is set up to follow referrals automatically.java.lang.String
getPassword()
Returns the password to be used for reauthentication, if the client is set up to follow referrals automatically.
-
-
-
Constructor Detail
-
LDAPRebindAuth
public LDAPRebindAuth()
-
LDAPRebindAuth
@Deprecated public LDAPRebindAuth(java.lang.String dn, java.lang.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 Detail
-
getDN
public java.lang.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 java.lang.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.
-
-