edu.vt.middleware.ldap.jaas
public class LdapRoleAuthorizationModule extends AbstractLoginModule implements javax.security.auth.spi.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(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.util.Map<java.lang.String,?> sharedState,
java.util.Map<java.lang.String,?> options) |
boolean |
login() |
static void |
main(java.lang.String[] args)
This provides command line access to a
LdapRoleLoginModule . |
abort, attributesToRoles, clearState, commit, createAuthenticator, createLdap, getCredentials, logout, storeCredentials
public void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler callbackHandler, java.util.Map<java.lang.String,?> sharedState, java.util.Map<java.lang.String,?> options)
initialize
in interface javax.security.auth.spi.LoginModule
initialize
in class AbstractLoginModule
public boolean login() throws javax.security.auth.login.LoginException
login
in interface javax.security.auth.spi.LoginModule
login
in class AbstractLoginModule
javax.security.auth.login.LoginException
public static void main(java.lang.String[] args) throws java.lang.Exception
LdapRoleLoginModule
.args
- String[]
java.lang.Exception
- if an error occursCopyright © 2014. All Rights Reserved.