org.apache.activemq.jaas
public class TextFileCertificateLoginModule extends CertificateLoginModule
Constructor and Description |
---|
TextFileCertificateLoginModule() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<java.lang.String> |
getUserGroups(java.lang.String username)
Overriding to allow for group discovery based on text files.
|
protected java.lang.String |
getUserNameForCertificates(java.security.cert.X509Certificate[] certs)
Overriding to allow DN authorization based on DNs specified in text
files.
|
void |
initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.util.Map sharedState,
java.util.Map options)
Performs initialization of file paths.
|
abort, commit, getDistinguishedName, login, logout
public TextFileCertificateLoginModule()
public void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler callbackHandler, java.util.Map sharedState, java.util.Map options)
initialize
in interface javax.security.auth.spi.LoginModule
initialize
in class CertificateLoginModule
protected java.lang.String getUserNameForCertificates(java.security.cert.X509Certificate[] certs) throws javax.security.auth.login.LoginException
getUserNameForCertificates
in class CertificateLoginModule
certs
- The certificate the incoming connection provided.javax.security.auth.login.LoginException
- Thrown if unable to find user file or connection
certificate.protected java.util.Set<java.lang.String> getUserGroups(java.lang.String username) throws javax.security.auth.login.LoginException
getUserGroups
in class CertificateLoginModule
username
- The name of the user being examined. This is the same
name returned by getUserNameForCertificates.javax.security.auth.login.LoginException
- Thrown if unable to find group definition file.Copyright © 2005-2014. All Rights Reserved.