public class LdapConnection<T extends LdapConnection<T>> extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
LdapConnection.LdapConnectionResources
Child mutators for LdapConnection 
 | 
static class  | 
LdapConnection.Referrals  | 
| Constructor and Description | 
|---|
LdapConnection(String key)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener 
 | 
Boolean | 
alwaysSendClientCert()
If true, the client SSL certificate will be sent to LDAP server with
 every request; otherwise the client SSL certificate will not be sent when
 verifying the user credentials 
 | 
T | 
alwaysSendClientCert(Boolean value)
If true, the client SSL certificate will be sent to LDAP server with
 every request; otherwise the client SSL certificate will not be sent when
 verifying the user credentials 
 | 
String | 
getKey()  | 
List<String> | 
handlesReferralsFor()
List of URLs that this connection handles referrals for. 
 | 
T | 
handlesReferralsFor(List<String> value)
List of URLs that this connection handles referrals for. 
 | 
T | 
handlesReferralsFor(String... args)
List of URLs that this connection handles referrals for. 
 | 
T | 
handlesReferralsFor(String value)
List of URLs that this connection handles referrals for. 
 | 
String | 
initialContextFactory()
The initial context factory to establish the LdapContext. 
 | 
T | 
initialContextFactory(String value)
The initial context factory to establish the LdapContext. 
 | 
T | 
properties(List<Property> value)
Add all Property objects to this subresource 
 | 
T | 
property(Property value)
Add the Property object to the list of subresources 
 | 
T | 
property(PropertySupplier supplier)
Install a supplied Property object to the list of subresources 
 | 
T | 
property(String childKey)
Create and configure a Property object to the list of subresources 
 | 
T | 
property(String childKey,
        PropertyConsumer consumer)
Create and configure a Property object to the list of subresources 
 | 
LdapConnection.Referrals | 
referrals()
The referral handling mode for this connection. 
 | 
T | 
referrals(LdapConnection.Referrals value)
The referral handling mode for this connection. 
 | 
void | 
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener 
 | 
String | 
searchCredential()
The credential to use when connecting to perform a search. 
 | 
T | 
searchCredential(String value)
The credential to use when connecting to perform a search. 
 | 
Map | 
searchCredentialReference()
The reference to the search credential stored in CredentialStore under
 defined alias or clear text password. 
 | 
T | 
searchCredentialReference(Map value)
The reference to the search credential stored in CredentialStore under
 defined alias or clear text password. 
 | 
T | 
searchCredentialReference(String key,
                         Object value)
The reference to the search credential stored in CredentialStore under
 defined alias or clear text password. 
 | 
String | 
searchDn()
The distinguished name to use when connecting to the LDAP server to
 perform searches. 
 | 
T | 
searchDn(String value)
The distinguished name to use when connecting to the LDAP server to
 perform searches. 
 | 
String | 
securityRealm()
The security realm to reference to obtain a configured SSLContext to use
 when establishing the connection. 
 | 
T | 
securityRealm(String value)
The security realm to reference to obtain a configured SSLContext to use
 when establishing the connection. 
 | 
LdapConnection.LdapConnectionResources | 
subresources()  | 
String | 
url()
The URL to use to connect to the LDAP server. 
 | 
T | 
url(String value)
The URL to use to connect to the LDAP server. 
 | 
public LdapConnection(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public LdapConnection.LdapConnectionResources subresources()
public T properties(List<Property> value)
value - List of Property objects.public T property(Property value)
value - The Property to addpublic T property(String childKey, PropertyConsumer consumer)
key - The key for the Property resourceconfig - The PropertyConsumer to usepublic T property(String childKey)
key - The key for the Property resourcepublic T property(PropertySupplier supplier)
public Boolean alwaysSendClientCert()
public T alwaysSendClientCert(Boolean value)
public List<String> handlesReferralsFor()
public T handlesReferralsFor(List<String> value)
public T handlesReferralsFor(String value)
public T handlesReferralsFor(String... args)
public String initialContextFactory()
public T initialContextFactory(String value)
public LdapConnection.Referrals referrals()
public T referrals(LdapConnection.Referrals value)
public String searchCredential()
public T searchCredential(String value)
public Map searchCredentialReference()
public T searchCredentialReference(Map value)
public T searchCredentialReference(String key, Object value)
public String searchDn()
public T searchDn(String value)
public String securityRealm()
public T securityRealm(String value)
public String url()
Copyright © 2018 JBoss by Red Hat. All rights reserved.