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, logoutpublic 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.LoginModuleinitialize in class CertificateLoginModuleprotected java.lang.String getUserNameForCertificates(java.security.cert.X509Certificate[] certs) throws javax.security.auth.login.LoginException
getUserNameForCertificates in class CertificateLoginModulecerts - 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 CertificateLoginModuleusername - 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-2012. All Rights Reserved.