|
All LDAP Classes Internal LDAP Classes |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ietf.ldap.LDAPConstraints.BindHandlerImpl
private class LDAPConstraints.BindHandlerImpl
Wrapper object for LDAPBindHandler LDAPReferralHandler
Field Summary | |
---|---|
(package private) LDAPBindHandler |
ref
|
Constructor Summary | |
---|---|
private |
LDAPConstraints.BindHandlerImpl(LDAPBindHandler ref)
|
Method Summary | |
---|---|
LDAPConnection |
bind(java.lang.String[] ldapurl,
LDAPConnection conn)
Called by LDAPConnection when a referral is received. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
LDAPBindHandler ref
Constructor Detail |
---|
private LDAPConstraints.BindHandlerImpl(LDAPBindHandler ref)
Method Detail |
---|
public LDAPConnection bind(java.lang.String[] ldapurl, LDAPConnection conn) throws LDAPReferralException
LDAPBindHandler
This method has the responsibility to bind to one of the hosts in the list specified by the ldaprul parameter which corresponds exactly to the list of hosts returned in a single referral response. An implementation may access the host, port, credentials, and other information in the original LDAPConnection object to decide on an appropriate authentication mechanism, and/or interact with a user or external module. The object implementing LDAPBind creates a new LDAPConnection object to perform its connect and bind calls. It returns the new connection when both the connect and bind operations succeed on one host from the list. The LDAPConnection object referral following code uses the new LDAPConnection object when it resends the search request, updated with the new search base and possible search filter. An LDAPException is thrown on failure, as in the LDAPConnection.bind method.
bind
in interface LDAPBindHandler
ldapurl
- The list of servers contained in a referral response.conn
- An established connection to an LDAP server.
LDAPReferralException
- An LDAPreferralException is thrown
with appropriate fields set to give the reason for the failure.
|
All LDAP Classes Internal LDAP Classes |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |