public class LDAPHelper extends Object
| Constructor and Description |
|---|
LDAPHelper() |
| Modifier and Type | Method and Description |
|---|---|
static LDAPUser |
auth(String name,
String password) |
static List<String> |
findWindowsDomainController(String ldapDomain) |
static String |
getLdapAuthenticationMethod() |
static String |
getLdapCertificatePath() |
static String |
getLdapFactory() |
static boolean |
getLdapIsSSL() |
static String |
getLdapPassword() |
static String |
getLdapPrincipal() |
static String |
getLdapSearchBase() |
static String |
getLdapUrl() |
static LDAPUser |
getUserInfo(String alias) |
void |
setLdapAuthenticationMethod(String ldapAuthenticationMethod) |
void |
setLdapCertificatePath(String ldapCertificatePath) |
void |
setLdapFactory(String ldapFactory) |
void |
setLdapIsSSL(boolean ldapIsSSL) |
void |
setLdapPassword(String ldapPassword) |
void |
setLdapPrincipal(String ldapPrincipal) |
void |
setLdapSearchBase(String ldapSearchBase) |
void |
setLdapUrl(String ldapUrl) |
public static String getLdapPrincipal()
public void setLdapPrincipal(String ldapPrincipal)
public static String getLdapPassword()
public void setLdapPassword(String ldapPassword)
public static String getLdapUrl()
public void setLdapUrl(String ldapUrl)
public static String getLdapCertificatePath()
public void setLdapCertificatePath(String ldapCertificatePath)
public static boolean getLdapIsSSL()
public void setLdapIsSSL(boolean ldapIsSSL)
public static String getLdapFactory()
public void setLdapFactory(String ldapFactory)
public static String getLdapAuthenticationMethod()
public void setLdapAuthenticationMethod(String ldapAuthenticationMethod)
public static String getLdapSearchBase()
public void setLdapSearchBase(String ldapSearchBase)
public static List<String> findWindowsDomainController(String ldapDomain) throws NamingException
NamingExceptionpublic static LDAPUser auth(String name, String password) throws NamingException
NamingExceptionpublic static LDAPUser getUserInfo(String alias) throws NamingException
NamingExceptionCopyright © 2016. All rights reserved.