public class LDAPJNDIConnection extends LDAPConnection
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_INITIAL_CONTEXT_FACTORY |
static int |
DEFAULT_INITIAL_POOL_CONNECTIONS |
static int |
DEFAULT_MAX_POOL_CONNECTIONS |
static long |
DEFAULT_POOL_TIMEOUT |
static String |
DEFAULT_REFERRAL |
AUTHENTICATION_ATTR, CONNECTION_IMPLEMENTATIONS, CONNECTION_TYPE_ATTR, DEFAULT_SCHEMA_ENABLED, DEFAULT_TLS_ENABLED, INITIAL_POOL_CONNECTIONS_ATTR, LDAP_URL_ATTR, MAX_POOL_CONNECTIONS_ATTR, NO_AUTHENTICATION, POOL_TIMEOUT_ATTR, REFERRAL_ATTR, SCHEMA_ENABLED, SIMPLE_AUTHENTICATION, TLS_ENABLED
Constructor and Description |
---|
LDAPJNDIConnection()
Default Constructor
|
LDAPJNDIConnection(String providerUrl) |
LDAPJNDIConnection(String providerUrl,
String initialContextFactory) |
LDAPJNDIConnection(String providerUrl,
String initialContextFactory,
String authentication) |
LDAPJNDIConnection(String providerUrl,
String initialContextFactory,
String authentication,
int maxPoolConnections,
int initialPoolSizeConnections,
long poolTimeout) |
LDAPJNDIConnection(String providerUrl,
String initialContextFactory,
String authentication,
int maxPoolConnections,
int initialPoolSizeConnections,
long poolTimeout,
boolean schemaEnabled) |
getConnection, getConnection, getConnection, isSchemaEnabled, isTlsEnabled, setSchemaEnabled, setTlsEnabled
public static final int DEFAULT_MAX_POOL_CONNECTIONS
public static final int DEFAULT_INITIAL_POOL_CONNECTIONS
public static final long DEFAULT_POOL_TIMEOUT
public static final String DEFAULT_INITIAL_CONTEXT_FACTORY
public static final String DEFAULT_REFERRAL
public LDAPJNDIConnection()
public LDAPJNDIConnection(String providerUrl) throws LDAPException
providerUrl
- Provider UrlLDAPException
public LDAPJNDIConnection(String providerUrl, String initialContextFactory) throws LDAPException
providerUrl
- Provider URLinitialContextFactory
- Initial Context FactoryLDAPException
public LDAPJNDIConnection(String providerUrl, String initialContextFactory, String authentication, int maxPoolConnections, int initialPoolSizeConnections, long poolTimeout) throws LDAPException
providerUrl
- Provider URLinitialContextFactory
- Initial Context Factoryauthentication
- AuthenticationmaxPoolConnections
- Max Pool ConnectionsinitialPoolSizeConnections
- Initial Pool Size ConnectionspoolTimeout
- Pool TimeoutLDAPException
public LDAPJNDIConnection(String providerUrl, String initialContextFactory, String authentication) throws LDAPException
providerUrl
- Provider URLinitialContextFactory
- Initial Context Factoryauthentication
- AuthenticationLDAPException
public LDAPJNDIConnection(String providerUrl, String initialContextFactory, String authentication, int maxPoolConnections, int initialPoolSizeConnections, long poolTimeout, boolean schemaEnabled) throws LDAPException
providerUrl
- Provider URLinitialContextFactory
- Initial Context Factoryauthentication
- AuthenticationmaxPoolConnections
- Max Pool ConnectionsinitialPoolSizeConnections
- Initial Pool Size ConnectionspoolTimeout
- Pool TimeoutschemaEnabled
- Is Schema EnabledLDAPException
protected void initialize(Map<String,String> conf) throws LDAPException
initialize
in class LDAPConnection
conf
- Map of configurationsLDAPException
LDAPConnection.initialize(java.util.Map)
public boolean isNoAuthentication()
public boolean isClosed()
isClosed
in class LDAPConnection
LDAPConnection.isClosed()
public void close() throws LDAPException
close
in class LDAPConnection
LDAPException
LDAPConnection.close()
public void rebind() throws LDAPException
rebind
in class LDAPConnection
LDAPException
LDAPConnection.rebind()
public void bind(String dn, String password) throws LDAPException
bind
in class LDAPConnection
dn
- Distinguished Namepassword
- PasswordLDAPException
LDAPConnection.bind(java.lang.String, java.lang.String)
public String getBindedUserDn() throws LDAPException
getBindedUserDn
in class LDAPConnection
LDAPException
LDAPConnection.getBindedUserDn()
public LDAPResultSet search(String baseDn, String filter, LDAPSearchControls controls) throws LDAPException
search
in class LDAPConnection
baseDn
- Base DNfilter
- Filtercontrols
- ControlsLDAPException
LDAPConnection.search(java.lang.String, java.lang.String, org.mule.module.ldap.api.LDAPSearchControls)
public LDAPResultSet search(String baseDn, String filter, Object[] filterArgs, LDAPSearchControls controls) throws LDAPException
search
in class LDAPConnection
baseDn
- Base Distinguished Namefilter
- FilterfilterArgs
- Filter Argumentscontrols
- ControlsLDAPException
LDAPConnection.search(java.lang.String, java.lang.String, java.lang.Object[], org.mule.module.ldap.api.LDAPSearchControls)
public LDAPEntry lookup(String dn) throws LDAPException
lookup
in class LDAPConnection
dn
- Distinguished NameLDAPException
LDAPConnection.lookup(java.lang.String)
public LDAPEntry lookup(@NotNull String dn, String[] attributes) throws LDAPException
LDAPConnection
lookup
in class LDAPConnection
dn
- Distinguished Nameattributes
- AttributesLDAPException
LDAPConnection.lookup(java.lang.String, java.lang.String[])
public void addEntry(@NotNull LDAPEntry entry) throws LDAPException
addEntry
in class LDAPConnection
entry
- LDAPEntryLDAPException
LDAPConnection.addEntry(org.mule.module.ldap.api.LDAPEntry)
public void updateEntry(@NotNull LDAPEntry entry) throws LDAPException
updateEntry
in class LDAPConnection
entry
- LDAPEntryLDAPException
LDAPConnection.updateEntry(org.mule.module.ldap.api.LDAPEntry)
public void deleteEntry(LDAPEntry entry) throws LDAPException
deleteEntry
in class LDAPConnection
entry
- LDAPEntryLDAPException
LDAPConnection.deleteEntry(org.mule.module.ldap.api.LDAPEntry)
public void deleteEntry(String dn) throws LDAPException
deleteEntry
in class LDAPConnection
dn
- Distinguished NameLDAPException
LDAPConnection.deleteEntry(java.lang.String)
public void renameEntry(String oldDn, String newDn) throws LDAPException
renameEntry
in class LDAPConnection
oldDn
- Old Distinguished NamenewDn
- New Distinguished NameLDAPException
LDAPConnection.renameEntry(java.lang.String, java.lang.String)
public void addAttribute(@NotNull String dn, @NotNull LDAPEntryAttribute attribute) throws LDAPException
addAttribute
in class LDAPConnection
dn
- Distinguished Nameattribute
- AttributeLDAPException
LDAPConnection.addAttribute(java.lang.String, org.mule.module.ldap.api.LDAPEntryAttribute)
public void updateAttribute(@NotNull String dn, @NotNull LDAPEntryAttribute attribute) throws LDAPException
updateAttribute
in class LDAPConnection
dn
- Distinguished Nameattribute
- AttributeLDAPException
LDAPConnection.updateAttribute(java.lang.String, org.mule.module.ldap.api.LDAPEntryAttribute)
public void deleteAttribute(@NotNull String dn, @NotNull LDAPEntryAttribute attribute) throws LDAPException
LDAPConnection
deleteAttribute
in class LDAPConnection
dn
- Distinguished Nameattribute
- AttributeLDAPException
LDAPConnection.deleteAttribute(java.lang.String, org.mule.module.ldap.api.LDAPEntryAttribute)
public LDAPEntryAttributeTypeDefinition getAttributeTypeDefinition(@NotNull String attributeName) throws LDAPException
LDAPException
protected LDAPEntryAttributeTypeDefinition retrieveAttributeTypeDefinition(@NotNull String attributeName) throws LDAPException
attributeName
- Attribute NameLDAPException
public List<String> getAllObjectClasses() throws LDAPException
LDAPException
public LDAPEntryObjectClassDefinition getObjectClassDefinition(String objectClassName) throws LDAPException
LDAPException
public String getAuthentication()
public void setAuthentication(String authentication)
setAuthentication
in class LDAPConnection
authentication
- The authentication to set.public int getInitialPoolSizeConnections()
public void setInitialPoolSizeConnections(int initialPoolSizeConnections)
initialPoolSizeConnections
- The initialPoolSizeConnections to set.public int getMaxPoolConnections()
public void setMaxPoolConnections(int maxPoolConnections)
maxPoolConnections
- The maxPoolConnections to set.public long getPoolTimeout()
public void setPoolTimeout(long poolTimeout)
poolTimeout
- The poolTimeout to set.public String getProviderUrl()
public void setProviderUrl(String provider)
provider
- The providerUrl to set.public boolean isConnectionPoolEnabled()
public String getInitialContextFactory()
public void setInitialContextFactory(String initialContextFactory)
initialContextFactory
- The initialContextFactory to set.public String getReferral()
public void setReferral(String referral)
public void setTrustStore(String trustStorePath)
setTrustStore
in class LDAPConnection
public void setTrustStorePassword(String trustStorePassword)
setTrustStorePassword
in class LDAPConnection
Copyright © 2010–2018. All rights reserved.