edu.vt.middleware.ldap.jaas
Class LdapRoleAuthorizationModule
java.lang.Object
edu.vt.middleware.ldap.jaas.AbstractLoginModule
edu.vt.middleware.ldap.jaas.LdapRoleAuthorizationModule
- All Implemented Interfaces:
- LoginModule
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.
- Version:
- $Revision: 1878 $ $Date: 2011-04-05 11:15:00 -0400 (Tue, 05 Apr 2011) $
- Author:
- Middleware Services
| Fields inherited from class edu.vt.middleware.ldap.jaas.AbstractLoginModule |
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LdapRoleAuthorizationModule
public LdapRoleAuthorizationModule()
initialize
public void initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options)
-
- Specified by:
initialize in interface LoginModule- Overrides:
initialize in class AbstractLoginModule
login
public boolean login()
throws LoginException
-
- Specified by:
login in interface LoginModule- Specified by:
login in class AbstractLoginModule
- Throws:
LoginException
main
public static void main(String[] args)
throws Exception
- This provides command line access to a
LdapRoleLoginModule.
- Parameters:
args - String[]
- Throws:
Exception - if an error occurs
Copyright © 2003-2010 Virginia Tech. All Rights Reserved.