public class LDAPLoginModule extends Object implements LoginModule
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_LDAP
the ldap server url
|
static String |
KEY_LDAP_PORT
the ldap server port
|
static String |
KEY_MANAGER
the ldap manager id
|
static String |
KEY_MANAGER_PASSWORD
the ldap manager password
|
static String |
KEY_ROOT_DN
the root dn to query agains
|
static String |
KEY_USER_FULL_NAME
the full name attribute of a user
|
static String |
KEY_USER_MAIL
the email attribute of a user
|
static String |
KEY_USER_NAME
the uid attribute of a user
|
| Constructor and Description |
|---|
LDAPLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort() |
boolean |
commit() |
DirContext |
createContext(String userDN,
String userPassword) |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
boolean |
login() |
boolean |
logout() |
public static final String KEY_LDAP
public static final String KEY_LDAP_PORT
public static final String KEY_USER_NAME
public static final String KEY_USER_FULL_NAME
public static final String KEY_USER_MAIL
public static final String KEY_ROOT_DN
public static final String KEY_MANAGER
public static final String KEY_MANAGER_PASSWORD
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize in interface LoginModulepublic boolean login()
throws LoginException
login in interface LoginModuleLoginExceptionpublic DirContext createContext(String userDN, String userPassword)
public boolean commit()
throws LoginException
commit in interface LoginModuleLoginExceptionpublic boolean abort()
throws LoginException
abort in interface LoginModuleLoginExceptionpublic boolean logout()
throws LoginException
logout in interface LoginModuleLoginExceptionCopyright © 2013–2014 Jabylon. All rights reserved.