public class LdapConnectionManagerService extends Object implements org.jboss.msc.service.Service<LdapConnectionManagerService>, ConnectionManager
Modifier and Type | Field and Description |
---|---|
static org.jboss.msc.service.ServiceName |
BASE_SERVICE_NAME |
Constructor and Description |
---|
LdapConnectionManagerService(org.jboss.dmr.ModelNode resolvedConfiguration) |
Modifier and Type | Method and Description |
---|---|
Object |
getConnection()
Obtain a connection based purely on the configuration.
|
Object |
getConnection(String principal,
String credential)
Obtain a connection based on the configuration but override the
principal and credential.
|
LdapConnectionManagerService |
getValue() |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public static final org.jboss.msc.service.ServiceName BASE_SERVICE_NAME
public LdapConnectionManagerService(org.jboss.dmr.ModelNode resolvedConfiguration)
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<LdapConnectionManagerService>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<LdapConnectionManagerService>
public LdapConnectionManagerService getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<LdapConnectionManagerService>
IllegalStateException
IllegalArgumentException
public Object getConnection() throws Exception
ConnectionManager
getConnection
in interface ConnectionManager
Exception
public Object getConnection(String principal, String credential) throws Exception
ConnectionManager
getConnection
in interface ConnectionManager
principal
- - The principal to use when connecting.credential
- - The credential to use when connecting.Exception
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.