jrun.security
Class WindowsLoginModule
jrun.security.WindowsLoginModule
- public class WindowsLoginModule
|
Field Summary |
protected java.lang.String |
loginMode
|
|
Method Summary |
boolean |
abort()
This method is called if the LoginContext's
overall authentication failed. |
boolean |
commit()
|
void |
initialize(javax.security.auth.Subject subj,
jrun.security.CallbackHandler cbh,
java.util.Map sharedState,
java.util.Map options)
|
boolean |
login()
|
protected boolean |
loginUser()
|
boolean |
logout()
Logout the user. |
protected boolean |
validateRole()
|
loginMode
protected java.lang.String loginMode
WindowsLoginModule
public WindowsLoginModule()
initialize
public void initialize(javax.security.auth.Subject subj,
jrun.security.CallbackHandler cbh,
java.util.Map sharedState,
java.util.Map options)
login
public boolean login()
throws javax.security.auth.login.LoginException
loginUser
protected boolean loginUser()
throws javax.security.auth.login.LoginException
validateRole
protected boolean validateRole()
throws javax.security.auth.login.LoginException
commit
public boolean commit()
throws javax.security.auth.login.LoginException
abort
public boolean abort()
throws javax.security.auth.login.LoginException
This method is called if the LoginContext's
overall authentication failed.
(the relevant REQUIRED, REQUISITE, SUFFICIENT and OPTIONAL LoginModules
did not succeed).
If this LoginModule's own authentication attempt
succeeded (checked by retrieving the private state saved by the
login and commit methods),
then this method cleans up any state that was originally saved.
- Returns:
- false if this LoginModule's own login and/or commit attempts
failed, and true otherwise.
- Throws:
LoginException - if the abort fails.
logout
public boolean logout()
throws javax.security.auth.login.LoginException
- Logout the user.
This method removes the SamplePrincipal
that was added by the commit method.
- Returns:
- true in all cases since this
LoginModule
should not be ignored. - Throws:
LoginException - if the logout fails.
Copyright � 2002 Macromedia Corporation. All Rights Reserved.