edu.vt.middleware.ldap.jaas
Class LdapLoginModule
java.lang.Object
edu.vt.middleware.ldap.jaas.AbstractLoginModule
edu.vt.middleware.ldap.jaas.LdapLoginModule
- All Implemented Interfaces:
- LoginModule
public class LdapLoginModule
- extends AbstractLoginModule
- implements LoginModule
LdapLoginModule provides a JAAS authentication hook into LDAP
authentication.
- 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 |
LdapLoginModule
public LdapLoginModule()
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
LdapLoginModule.
- Parameters:
args - String[]
- Throws:
Exception - if an error occurs
Copyright © 2003-2010 Virginia Tech. All Rights Reserved.