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 |
close(DirContext context) |
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 sharedState,
Map options) |
boolean |
login() |
boolean |
logout() |
protected DirContext |
open() |
protected DirContext context
public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map 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 close(DirContext context)
protected boolean authenticate(String username, String password) throws LoginException
LoginException
protected List<String> getRoles(DirContext context, String dn, String username, List<String> currentRoles) throws NamingException
NamingException
protected boolean bindUser(DirContext context, String dn, String password) throws NamingException
NamingException
protected DirContext open() throws NamingException
NamingException
Copyright © 2015 The Apache Software Foundation. All rights reserved.