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 DirContext
context
-
Constructor Summary
Constructors Constructor Description LDAPLoginModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
context
protected DirContext context
-
-
Method Detail
-
initialize
public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
- Specified by:
initialize
in interfaceLoginModule
-
login
public boolean login() throws LoginException
- Specified by:
login
in interfaceLoginModule
- Throws:
LoginException
-
logout
public boolean logout() throws LoginException
- Specified by:
logout
in interfaceLoginModule
- Throws:
LoginException
-
commit
public boolean commit() throws LoginException
- Specified by:
commit
in interfaceLoginModule
- Throws:
LoginException
-
abort
public boolean abort() throws LoginException
- Specified by:
abort
in 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
-
-