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