public class LdapConnectionManagerService extends Object implements org.jboss.msc.service.Service<LdapConnectionManager>, LdapConnectionManager
| Modifier and Type | Class and Description |
|---|---|
static class |
LdapConnectionManagerService.ServiceUtil |
| Modifier and Type | Method and Description |
|---|---|
LdapConnectionManager |
findForReferral(URI referralUri)
Identify which
LdapConnectionManager can establish connections needed for a referral. |
DirContext |
getConnection()
Obtain a connection to LDAP using the configuration defined.
|
LdapConnectionManager |
getValue() |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
void |
verifyIdentity(String bindDn,
String bindCredential)
Verify that the specified bindDn and bindCredential can be used to establish a connection to LDAP.
|
public LdapConnectionManager getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<LdapConnectionManager>IllegalStateExceptionIllegalArgumentExceptionpublic void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.Serviceorg.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.Servicepublic DirContext getConnection() throws NamingException
LdapConnectionManagergetConnection in interface LdapConnectionManagerDirContext for access to the LDAP server.NamingException - If an error occurs connecting to LDAP.public void verifyIdentity(String bindDn, String bindCredential) throws NamingException
LdapConnectionManagerNamingException is thrown then the establishment of the connection was successful.verifyIdentity in interface LdapConnectionManagerbindDn - - The bind distinguished name for the connection.bindCredential - - The bind credential for the connection.NamingException - - If there is any error establishing the connection.public LdapConnectionManager findForReferral(URI referralUri)
LdapConnectionManagerLdapConnectionManager can establish connections needed for a referral.findForReferral in interface LdapConnectionManagerreferralUri - - The URI of the referral.LdapConnectionManager that can handle the referral or null if none is found.Copyright © 2019 JBoss by Red Hat. All rights reserved.