public class LdapLoginModule extends AbstractLoginModule
| Modifier and Type | Field and Description |
|---|---|
private Authenticator |
auth
Authenticator to use against the LDAP.
|
private AuthenticatorFactory |
authenticatorFactory
Factory for creating authenticators with JAAS options.
|
private AuthenticationRequest |
authRequest
Authentication request to use for authentication.
|
private String[] |
userRoleAttribute
User attribute to add to role data.
|
callbackHandler, clearPass, commitSuccess, credentials, defaultRole, logger, LOGIN_DN, LOGIN_NAME, LOGIN_PASSWORD, loginSuccess, principalGroupName, principals, roleGroupName, roles, setLdapCredential, setLdapDnPrincipal, setLdapPrincipal, sharedState, storePass, subject, tryFirstPass, useFirstPass| Constructor and Description |
|---|
LdapLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
protected boolean |
login(NameCallback nameCb,
PasswordCallback passCb)
Authenticates a
Subject with the supplied callbacks. |
static void |
main(String[] args)
This provides command line access to this JAAS module.
|
abort, clearState, commit, getCredentials, login, logout, storeCredentialsprivate String[] userRoleAttribute
private AuthenticatorFactory authenticatorFactory
private Authenticator auth
private AuthenticationRequest authRequest
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize in interface LoginModuleinitialize in class AbstractLoginModuleprotected boolean login(NameCallback nameCb, PasswordCallback passCb) throws LoginException
AbstractLoginModuleSubject with the supplied callbacks.login in class AbstractLoginModulenameCb - callback handler for subject's namepassCb - callback handler for subject's passwordLoginException - if the authentication failsCopyright © 2003-2019 Virginia Tech. All Rights Reserved.