Class LDAPLoginModule
java.lang.Object
org.apache.activemq.artemis.spi.core.security.jaas.LDAPLoginModule
- All Implemented Interfaces:
LoginModule, AuditLoginModule
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabort()protected voidprotected booleanauthenticate(String username, String password) protected booleanbindUser(DirContext context, String dn, String password) protected voidbooleancommit()protected StringdoRFC2254Encoding(String inputString) protected voidextendInitialEnvironment(Set<LDAPLoginProperty> moduleConfig, Map<String, String> initialContextEnv) voidinitialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) booleanlogin()booleanlogout()protected voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AuditLoginModule
registerFailureForAudit
-
Field Details
-
context
-
-
Constructor Details
-
LDAPLoginModule
public LDAPLoginModule()
-
-
Method Details
-
initialize
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> 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
-
addRoles
protected void addRoles(DirContext context, String dn, String username, List<String> currentRoles) throws NamingException - Throws:
NamingException
-
doRFC2254Encoding
-
bindUser
- Throws:
NamingException
-
openContext
-
extendInitialEnvironment
protected void extendInitialEnvironment(Set<LDAPLoginProperty> moduleConfig, Map<String, String> initialContextEnv)
-