Package org.apache.activemq.jaas
Class LDAPLoginModule
java.lang.Object
org.apache.activemq.jaas.LDAPLoginModule
- All Implemented Interfaces:
LoginModule
- Direct Known Subclasses:
EncryptableLDAPLoginModule
- Version:
- $Rev: $ $Date: $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabort()protected booleanauthenticate(String username, String password) protected booleanbindUser(DirContext context, String dn, String password) protected voidbooleancommit()protected StringdoRFC2254Encoding(String inputString) voidinitialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options) booleanlogin()booleanlogout()protected void
-
Field Details
-
context
-
-
Constructor Details
-
LDAPLoginModule
public LDAPLoginModule()
-
-
Method Details
-
initialize
public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options) - Specified by:
initializein interfaceLoginModule
-
login
- Specified by:
loginin interfaceLoginModule- Throws:
LoginException
-
logout
- Specified by:
logoutin interfaceLoginModule- Throws:
LoginException
-
commit
- Specified by:
commitin interfaceLoginModule- Throws:
LoginException
-
abort
- Specified by:
abortin interfaceLoginModule- Throws:
LoginException
-
closeContext
protected void closeContext() -
authenticate
- Throws:
LoginException
-
getRoles
protected List<String> getRoles(DirContext context, String dn, String username, List<String> currentRoles) throws NamingException - Throws:
NamingException
-
doRFC2254Encoding
-
bindUser
- Throws:
NamingException
-
openContext
- Throws:
NamingException
-