LDAP Classes
Implements Java LDAP

com.novell.ldap
Class LDAPAuthProvider

java.lang.Object
  extended bycom.novell.ldap.LDAPAuthProvider

public class LDAPAuthProvider
extends java.lang.Object

An implementation of LDAPAuthHandler must be able to provide an LDAPAuthProvider object at the time of a referral. The class encapsulates information that is used by the client for authentication when following referrals automatically.

See Also:
LDAPAuthHandler, LDAPBindHandler, LDAPConstraints.setReferralFollowing(boolean)

Constructor Summary
LDAPAuthProvider(java.lang.String dn, byte[] password)
          Constructs information that is used by the client for authentication when following referrals automatically.
 
Method Summary
 java.lang.String getDN()
          Returns the distinguished name to be used for authentication on automatic referral following.
 byte[] getPassword()
          Returns the password to be used for authentication on automatic referral following.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPAuthProvider

public LDAPAuthProvider(java.lang.String dn,
                        byte[] password)
Constructs information that is used by the client for authentication when following referrals automatically.

Parameters:
dn - The distinguished name to use when authenticating to a server.

password - The password to use when authenticating to a server.
Method Detail

getDN

public java.lang.String getDN()
Returns the distinguished name to be used for authentication on automatic referral following.

Returns:
The distinguished name from the object.

getPassword

public byte[] getPassword()
Returns the password to be used for authentication on automatic referral following.

Returns:
The byte[] value (UTF-8) of the password from the object.

LDAP Classes
Implements Java LDAP

Copyright © 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000