An LDAP DNS provider is a concrete subclass of this class that
has a zero-argument constructor. LDAP DNS providers are located using the
ServiceLoader facility, as specified by
InitialDirectContext.
The
ServiceLoader is used to create and register
implementations of LdapDnsProvider.
An LDAP DNS provider can be used in environments where the default
DNS resolution mechanism is not sufficient to accurately pinpoint the
correct LDAP servers needed to perform LDAP operations. For example, in an
environment containing a mix of ldap and ldaps servers
you may want the LdapContext
to query ldaps servers only.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Optional | lookupEndpoints(String
The url, Map<?, ?> Context provider URLThe env)Context environment.Lookup the endpoints and domain name for the given |
| LdapDnsProvider | back to summary |
|---|---|
| protected LdapDnsProvider() Creates a new instance of | |
| lookupEndpoints | back to summary |
|---|---|
| public abstract Optional Lookup the endpoints and domain name for the given An endpoint is a
| |