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
Login Module that authenticates against Ldap (in particular, the NSDL Ldap server).
-
Field Summary
Fields inherited from class org.dlese.dpc.schemedit.security.login.SimpleLogin
commitSucceeded, pending, principalsFields inherited from class org.dlese.dpc.schemedit.security.login.BasicLogin
callbackHandler, options, sharedState, subject -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options) Initialize Ldap client using props file specified in the login config fileprotected VectorvalidateUser(String username, char[] password) Validate user against using LdapClientMethods inherited from class org.dlese.dpc.schemedit.security.login.SimpleLogin
abort, commit, getLoginModuleName, login, logout, putPrincipal, showSharedStateMethods inherited from class org.dlese.dpc.schemedit.security.login.BasicLogin
getOption, getOption, getOption
-
Constructor Details
-
LdapLogin
public LdapLogin()
-
-
Method Details
-
validateUser
Validate user against using LdapClient- Specified by:
validateUserin classSimpleLogin- 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:
initializein interfaceLoginModule- Overrides:
initializein classBasicLogin
-