public class DirContext<T extends DirContext<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DirContext.ReferralMode |
Constructor and Description |
---|
DirContext(String key) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
String |
authenticationContext()
The authentication context to obtain login credentials to connect to the
LDAP server.
|
T |
authenticationContext(String value)
The authentication context to obtain login credentials to connect to the
LDAP server.
|
String |
authenticationLevel()
The authentication level (security level/authentication mechanism) to
use.
|
T |
authenticationLevel(String value)
The authentication level (security level/authentication mechanism) to
use.
|
Integer |
connectionTimeout()
The timeout for connecting to the LDAP server in milliseconds.
|
T |
connectionTimeout(Integer value)
The timeout for connecting to the LDAP server in milliseconds.
|
Map |
credentialReference()
The credential reference to authenticate and connect to the LDAP server.
|
T |
credentialReference(Map value)
The credential reference to authenticate and connect to the LDAP server.
|
T |
credentialReference(String key,
Object value)
The credential reference to authenticate and connect to the LDAP server.
|
Boolean |
enableConnectionPooling()
Indicates if connection pooling is enabled.
|
T |
enableConnectionPooling(Boolean value)
Indicates if connection pooling is enabled.
|
String |
getKey() |
String |
module()
Name of module that will be used as class loading base.
|
T |
module(String value)
Name of module that will be used as class loading base.
|
String |
principal()
The principal to authenticate and connect to the LDAP server.
|
T |
principal(String value)
The principal to authenticate and connect to the LDAP server.
|
Map |
properties()
The additional connection properties for the DirContext.
|
T |
properties(Map value)
The additional connection properties for the DirContext.
|
T |
property(String key,
Object value)
The additional connection properties for the DirContext.
|
Integer |
readTimeout()
The read timeout for an LDAP operation in milliseconds.
|
T |
readTimeout(Integer value)
The read timeout for an LDAP operation in milliseconds.
|
DirContext.ReferralMode |
referralMode()
If referrals should be followed.
|
T |
referralMode(DirContext.ReferralMode value)
If referrals should be followed.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
String |
sslContext()
The name of ssl-context used to secure connection to the LDAP server.
|
T |
sslContext(String value)
The name of ssl-context used to secure connection to the LDAP server.
|
String |
url()
The connection url.
|
T |
url(String value)
The connection url.
|
public DirContext(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public String authenticationContext()
public T authenticationContext(String value)
public String authenticationLevel()
public T authenticationLevel(String value)
public Integer connectionTimeout()
public T connectionTimeout(Integer value)
public Map credentialReference()
public T credentialReference(Map value)
public T credentialReference(String key, Object value)
public Boolean enableConnectionPooling()
public T enableConnectionPooling(Boolean value)
public String module()
public String principal()
public T principal(String value)
public Map properties()
public T property(String key, Object value)
public Integer readTimeout()
public T readTimeout(Integer value)
public DirContext.ReferralMode referralMode()
public T referralMode(DirContext.ReferralMode value)
public String sslContext()
public T sslContext(String value)
public String url()
Copyright © 2018 JBoss by Red Hat. All rights reserved.