Class UcasLogin
java.lang.Object
org.dlese.dpc.schemedit.security.login.BasicLogin
org.dlese.dpc.schemedit.security.login.SimpleLogin
org.dlese.dpc.schemedit.security.login.UcasLogin
- All Implemented Interfaces:
LoginModule
LoginModule that uses UCAS auth service to Authenticate.
- Author:
- Jonathan Ostwald
-
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) Intialize the UcasLogin using the propsFile obtained from the login config.protected VectorvalidateUser(String username, char[] password) Validate the user via MyUcasClient (which uses the information in it's propsFile to authenticate itself to the UCAS Auth service).Methods 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
-
UcasLogin
public UcasLogin()
-
-
Method Details
-
validateUser
Validate the user via MyUcasClient (which uses the information in it's propsFile to authenticate itself to the UCAS Auth service).- 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) Intialize the UcasLogin using the propsFile obtained from the login config.- Specified by:
initializein interfaceLoginModule- Overrides:
initializein classBasicLogin- Parameters:
subject- NOT YET DOCUMENTEDcallbackHandler- NOT YET DOCUMENTEDsharedState- NOT YET DOCUMENTEDoptions- NOT YET DOCUMENTED
-