public final class LdapDnsProviderResult extends Object
This class is used by an
LdapDnsProvider to return the result
of a DNS lookup for a given LDAP URL. The result consists of a domain name
and its associated ldap server endpoints.
domainName is equivalent to and represented
by an empty string.
Construct an LdapDnsProviderResult consisting of a resolved domain name and the ldap server endpoints that serve the domain.
public String getDomainName()Returns the domain name resolved from the ldap URL. This method returns the empty string if the
LdapDnsProviderResultis created with a null domain name.
- the resolved domain name
Returns the possibly empty list of individual server endpoints resolved from the ldap URL.
- a possibly empty unmodifiable
Listcontaining the resolved ldap server endpoints