Package org.apache.activemq.jaas
Class LDAPLoginModule
- java.lang.Object
-
- org.apache.activemq.jaas.LDAPLoginModule
-
- All Implemented Interfaces:
LoginModule
- Direct Known Subclasses:
EncryptableLDAPLoginModule
public class LDAPLoginModule extends Object implements LoginModule
- Version:
- $Rev: $ $Date: $
-
-
Field Summary
Fields Modifier and Type Field Description protected DirContextcontext
-
Constructor Summary
Constructors Constructor Description LDAPLoginModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanabort()protected booleanauthenticate(String username, String password)protected booleanbindUser(DirContext context, String dn, String password)protected voidclose(DirContext context)booleancommit()protected StringdoRFC2254Encoding(String inputString)protected List<String>getRoles(DirContext context, String dn, String username, List<String> currentRoles)voidinitialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)booleanlogin()booleanlogout()protected DirContextopen()
-
-
-
Field Detail
-
context
protected DirContext context
-
-
Method Detail
-
initialize
public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
- Specified by:
initializein interfaceLoginModule
-
login
public boolean login() throws LoginException- Specified by:
loginin interfaceLoginModule- Throws:
LoginException
-
logout
public boolean logout() throws LoginException- Specified by:
logoutin interfaceLoginModule- Throws:
LoginException
-
commit
public boolean commit() throws LoginException- Specified by:
commitin interfaceLoginModule- Throws:
LoginException
-
abort
public boolean abort() throws LoginException- Specified by:
abortin interfaceLoginModule- Throws:
LoginException
-
close
protected void close(DirContext context)
-
authenticate
protected boolean authenticate(String username, String password) throws LoginException
- Throws:
LoginException
-
getRoles
protected List<String> getRoles(DirContext context, String dn, String username, List<String> currentRoles) throws NamingException
- Throws:
NamingException
-
bindUser
protected boolean bindUser(DirContext context, String dn, String password) throws NamingException
- Throws:
NamingException
-
open
protected DirContext open() throws NamingException
- Throws:
NamingException
-
-