org.dlese.dpc.schemedit.security.login
Class LdapLogin
java.lang.Object
org.dlese.dpc.schemedit.security.login.BasicLogin
org.dlese.dpc.schemedit.security.login.SimpleLogin
org.dlese.dpc.schemedit.security.login.LdapLogin
- All Implemented Interfaces:
- LoginModule
public class LdapLogin
- extends SimpleLogin
Login Module that authenticates against Ldap (in particular, the NSDL Ldap server).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LdapLogin
public LdapLogin()
validateUser
protected Vector validateUser(String username,
char[] password)
throws LoginException
- Validate user against using LdapClient
- Specified by:
validateUser
in class SimpleLogin
- Parameters:
username
- The usernamepassword
- The password
- Returns:
- a Vector of Principals that apply for this user.
- Throws:
LoginException
- if the login fails.
initialize
public void initialize(Subject subject,
CallbackHandler callbackHandler,
Map sharedState,
Map options)
- Initialize Ldap client using props file specified in the login config file
- Specified by:
initialize
in interface LoginModule
- Overrides:
initialize
in class BasicLogin