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 TypeMethodDescriptionboolean
abort()
protected void
protected boolean
authenticate
(String username, String password) protected boolean
bindUser
(DirContext context, String dn, String password) protected void
boolean
commit()
protected String
doRFC2254Encoding
(String inputString) protected void
extendInitialEnvironment
(Set<LDAPLoginProperty> moduleConfig, Hashtable<String, String> initialContextEnv) void
initialize
(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) boolean
login()
boolean
logout()
protected void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.activemq.artemis.spi.core.security.jaas.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:
initialize
in interfaceLoginModule
-
login
- Specified by:
login
in interfaceLoginModule
- Throws:
LoginException
-
logout
- Specified by:
logout
in interfaceLoginModule
- Throws:
LoginException
-
commit
- Specified by:
commit
in interfaceLoginModule
- Throws:
LoginException
-
abort
- Specified by:
abort
in 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
- Throws:
Exception
-
extendInitialEnvironment
protected void extendInitialEnvironment(Set<LDAPLoginProperty> moduleConfig, Hashtable<String, String> initialContextEnv)
-