public abstract class AbstractConfig extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
authentication |
Map<String,String> |
extendedConfiguration
This is a
Map instance holding extended configuration attributes that will be used in the Context environment. |
Referral |
referral
Constant that holds the name of the environment property for specifying how referrals encountered by the service provider are to be processed (follow, ignore, throw).
|
boolean |
schemaEnabled
If set to true, the LDAP connector will use the LDAP schema (only works for LDAP v3) to define the structure of the LDAP entry (or map).
|
Type |
type
The implementation of the connection to be used.
|
String |
url
The connection URL to the LDAP server with the following syntax:
ldap[s]://hostname:port/base_dn . |
Constructor and Description |
---|
AbstractConfig() |
Modifier and Type | Method and Description |
---|---|
String |
connectionId()
Returns the connection ID
|
LDAPConnection |
createPooledConnections(String authDn,
String authPassword,
String authentication,
boolean tlsEnabled) |
void |
disconnect()
Disconnect the current connection
|
LDAPConnection |
getConnection() |
Map<String,String> |
getExtendedConfiguration() |
LDAPPool<LDAPConnection> |
getLdapConnectionPool() |
MetadataBuilder |
getMetadataBuilder() |
Referral |
getReferral() |
Type |
getType() |
String |
getUrl() |
boolean |
isConnected()
Are we connected?
|
boolean |
isSchemaEnabled() |
abstract void |
releaseConnection(LDAPConnection connection) |
void |
setExtendedConfiguration(Map<String,String> extendedConfiguration) |
void |
setMetadataBuilder(MetadataBuilder metadataBuilder) |
void |
setReferral(Referral referral) |
void |
setSchemaEnabled(boolean schemaEnabled) |
void |
setType(Type type) |
void |
setUrl(String url) |
@Configurable @Placement(group="Connection", order=0) @FriendlyName(value="URL") public String url
ldap[s]://hostname:port/base_dn
.@Configurable @Default(value="JNDI") public Type type
@Configurable @Default(value="IGNORE") @Placement(group="Advanced") public Referral referral
@Configurable @Optional @Placement(group="Advanced") public Map<String,String> extendedConfiguration
Map
instance holding extended configuration attributes that will be used in the Context environment. When working with TLS connectionInfo you need to make
sure that the native LDAP pooling functionality is turned off. For example if using JNDI do not use attributes such as 'com.sun.jndi.ldap.connect.pool=true' will cause
problems when using TLS.@Configurable @Default(value="false") @Placement(group="General") public boolean schemaEnabled
LDAPEntry
attributes.protected String authentication
public LDAPPool<LDAPConnection> getLdapConnectionPool()
public LDAPConnection createPooledConnections(String authDn, String authPassword, String authentication, boolean tlsEnabled) throws LDAPException
LDAPException
@ConnectionIdentifier public String connectionId()
@Disconnect public void disconnect()
@ValidateConnection public boolean isConnected()
public String getUrl()
public void setUrl(String url)
public Type getType()
public void setType(Type type)
public Referral getReferral()
public void setReferral(Referral referral)
public void setExtendedConfiguration(Map<String,String> extendedConfiguration)
public boolean isSchemaEnabled()
public void setSchemaEnabled(boolean schemaEnabled)
public LDAPConnection getConnection()
public MetadataBuilder getMetadataBuilder()
public void setMetadataBuilder(MetadataBuilder metadataBuilder)
public abstract void releaseConnection(LDAPConnection connection)
Copyright © 2010–2018. All rights reserved.