public class UcasLogin extends SimpleLogin
commitSucceeded, pending, principals
callbackHandler, options, sharedState, subject
Constructor and Description |
---|
UcasLogin() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler callbackHandler,
java.util.Map sharedState,
java.util.Map options)
Intialize the UcasLogin using the propsFile obtained from the login config.
|
protected java.util.Vector |
validateUser(java.lang.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).
|
abort, commit, getLoginModuleName, login, logout, putPrincipal, showSharedState
getOption, getOption, getOption
protected java.util.Vector validateUser(java.lang.String username, char[] password) throws javax.security.auth.login.LoginException
validateUser
in class SimpleLogin
username
- The usernamepassword
- The passwordjavax.security.auth.login.LoginException
- if the login fails.public void initialize(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler callbackHandler, java.util.Map sharedState, java.util.Map options)
initialize
in interface javax.security.auth.spi.LoginModule
initialize
in class BasicLogin
subject
- NOT YET DOCUMENTEDcallbackHandler
- NOT YET DOCUMENTEDsharedState
- NOT YET DOCUMENTEDoptions
- NOT YET DOCUMENTED