public class LdapRoleAuthorizationModule extends AbstractLoginModule implements LoginModule
LdapRoleAuthorizationModule
provides a JAAS authentication hook
into LDAP roles. No authentication is performed in this module. Role data is
set for the login name in the shared state or for the name returned by the
CallbackHandler.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 |
---|
LdapRoleAuthorizationModule() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options) |
boolean |
login() |
static void |
main(String[] args)
This provides command line access to a
LdapRoleLoginModule . |
abort, attributesToRoles, clearState, commit, createAuthenticator, createLdap, getCredentials, logout, storeCredentials
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
abort, commit, logout
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize
in interface LoginModule
initialize
in class AbstractLoginModule
public boolean login() throws LoginException
login
in interface LoginModule
login
in class AbstractLoginModule
LoginException
Copyright © 2019. All rights reserved.