public class TextFileCertificateLoginModule extends CertificateLoginModule
PropertiesLoader.FileNameKeydebug| 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, logoutinit, load, resetUsersAndGroupsCacheclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterFailureForAuditpublic void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize in interface LoginModuleinitialize in class CertificateLoginModuleprotected String getUserNameForCertificates(X509Certificate[] certs) throws LoginException
getUserNameForCertificates in class CertificateLoginModulecerts - 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 CertificateLoginModuleusername - 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 © 2020 The Apache Software Foundation. All rights reserved.