public class LdapConnectionManagerService extends Object implements org.jboss.msc.service.Service<LdapConnectionManager>, LdapConnectionManager
Modifier and Type | Class and Description |
---|---|
static class |
LdapConnectionManagerService.ServiceUtil |
Constructor and Description |
---|
LdapConnectionManagerService(String name,
org.jboss.as.domain.management.connections.ldap.LdapConnectionManagerRegistry connectionManagerRegistry) |
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.
|
org.jboss.msc.value.InjectedValue<SSLContext> |
getFullSSLContextInjector() |
org.jboss.msc.value.InjectedValue<SSLContext> |
getTrustOnlySSLContextInjector() |
LdapConnectionManagerService |
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 LdapConnectionManagerService(String name, org.jboss.as.domain.management.connections.ldap.LdapConnectionManagerRegistry connectionManagerRegistry)
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<LdapConnectionManager>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<LdapConnectionManager>
public LdapConnectionManagerService getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<LdapConnectionManager>
IllegalStateException
IllegalArgumentException
public org.jboss.msc.value.InjectedValue<SSLContext> getFullSSLContextInjector()
public org.jboss.msc.value.InjectedValue<SSLContext> getTrustOnlySSLContextInjector()
public DirContext getConnection() throws NamingException
LdapConnectionManager
getConnection
in interface LdapConnectionManager
DirContext
for access to the LDAP server.NamingException
- If an error occurs connecting to LDAP.public void verifyIdentity(String bindDn, String bindCredential) throws NamingException
LdapConnectionManager
NamingException
is thrown then the establishment of the connection was successful.verifyIdentity
in interface LdapConnectionManager
bindDn
- - 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)
LdapConnectionManager
LdapConnectionManager
can establish connections needed for a referral.findForReferral
in interface LdapConnectionManager
referralUri
- - The URI of the referral.LdapConnectionManager
that can handle the referral or null
if none is found.Copyright © 2023 JBoss by Red Hat. All rights reserved.