public class TextFileCertificateLoginModule extends CertificateLoginModule
PropertiesLoader.FileNameKey
debug
Constructor and Description |
---|
TextFileCertificateLoginModule() |
Modifier and Type | Method and Description |
---|---|
protected String |
getUserNameForCertificates(X509Certificate[] certs)
Overriding to allow DN authorization based on DNs specified in text
files.
|
protected Set<String> |
getUserRoles(String username)
Overriding to allow for role discovery based on text files.
|
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options)
Performs initialization of file paths.
|
abort, commit, getDistinguishedName, login, logout
init, load, resetUsersAndGroupsCache
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> 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> getUserRoles(String username) throws LoginException
getUserRoles
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 role definition file.Copyright © 2017 JBoss by Red Hat. All rights reserved.