public class LDAPLoginModule extends Object implements LoginModule
| Modifier and Type | Field and Description |
|---|---|
protected DirContext |
context |
| Constructor and Description |
|---|
LDAPLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort() |
protected boolean |
authenticate(String username,
String password) |
protected boolean |
bindUser(DirContext context,
String dn,
String password) |
protected void |
closeContext() |
boolean |
commit() |
protected String |
doRFC2254Encoding(String inputString) |
protected List<String> |
getRoles(DirContext context,
String dn,
String username,
List<String> currentRoles) |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
boolean |
login() |
boolean |
logout() |
protected void |
openContext() |
protected DirContext context
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 boolean logout()
throws LoginException
logout in interface LoginModuleLoginExceptionpublic boolean commit()
throws LoginException
commit in interface LoginModuleLoginExceptionpublic boolean abort()
throws LoginException
abort in interface LoginModuleLoginExceptionprotected void closeContext()
protected boolean authenticate(String username, String password) throws LoginException
LoginExceptionprotected List<String> getRoles(DirContext context, String dn, String username, List<String> currentRoles) throws NamingException
NamingExceptionprotected boolean bindUser(DirContext context, String dn, String password) throws NamingException
NamingExceptionprotected void openContext()
throws NamingException
NamingExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.