|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Used to provide credentials for authentication when processing a referral.
A programmer desiring to supply authentication credentials to the API when automatically following referrals MUST implement this interface. If LDAPAuthHandler or LDAPBindHandler are not implemented, automatically followed referrals will use anonymous authentication. Referral URLs of any type other than LDAP (i.e. a referral URL other than ldap://something) are not chased automatically by the API on automatic following.
Sample Code: SearchUtil.java
LDAPBindHandler
,
LDAPConstraints.setReferralFollowing(boolean)
Method Summary | |
LDAPAuthProvider |
getAuthProvider(java.lang.String host,
int port)
Returns an object which can provide credentials for authenticating to a server at the specified host and port. |
Method Detail |
public LDAPAuthProvider getAuthProvider(java.lang.String host, int port)
host
- Contains a host name or the IP address (in dotted string
format) of a host running an LDAP server.
port
- Contains the TCP or UDP port number of the host.
|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |