org.dlese.dpc.schemedit.security.login
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
 
public class UcasLogin
- extends SimpleLogin
 
LoginModule that uses UCAS auth service to Authenticate.
- Author:
 
  - Jonathan Ostwald
 
 
 
 
 
| 
Method Summary | 
 void | 
initialize(Subject subject,
           CallbackHandler callbackHandler,
           Map sharedState,
           Map options)
 
          Intialize the UcasLogin using the propsFile obtained from the login config. | 
protected  Vector | 
validateUser(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 java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
UcasLogin
public UcasLogin()
validateUser
protected Vector validateUser(String username,
                              char[] password)
                       throws LoginException
- Validate the user via MyUcasClient (which uses the information in it's propsFile
 to authenticate itself to the UCAS Auth service).
- 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)
- Intialize the UcasLogin using the propsFile obtained from the login config.
- Specified by:
 initialize in interface LoginModule- Overrides:
 initialize in class BasicLogin
 
- Parameters:
 subject - NOT YET DOCUMENTEDcallbackHandler - NOT YET DOCUMENTEDsharedState - NOT YET DOCUMENTEDoptions - NOT YET DOCUMENTED