public class LDAPLoginModule extends Object implements AuditLoginModule
| Modifier and Type | Field and Description |
|---|---|
protected DirContext |
context |
| Constructor and Description |
|---|
LDAPLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort() |
protected void |
addRoles(DirContext context,
String dn,
String username,
List<String> currentRoles) |
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) |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
boolean |
login() |
boolean |
logout() |
protected void |
openContext() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterFailureForAuditprotected 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 void addRoles(DirContext context, String dn, String username, List<String> currentRoles) throws NamingException
NamingExceptionprotected boolean bindUser(DirContext context, String dn, String password) throws NamingException
NamingExceptionCopyright © 2020 The Apache Software Foundation. All rights reserved.