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, wait
registerFailureForAudit
protected DirContext context
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize
in interface LoginModule
public boolean login() throws LoginException
login
in interface LoginModule
LoginException
public boolean logout() throws LoginException
logout
in interface LoginModule
LoginException
public boolean commit() throws LoginException
commit
in interface LoginModule
LoginException
public boolean abort() throws LoginException
abort
in interface LoginModule
LoginException
protected void closeContext()
protected boolean authenticate(String username, String password) throws LoginException
LoginException
protected void addRoles(DirContext context, String dn, String username, List<String> currentRoles) throws NamingException
NamingException
protected boolean bindUser(DirContext context, String dn, String password) throws NamingException
NamingException
Copyright © 2021 JBoss by Red Hat. All rights reserved.