net.sf.jguard.authentication.loginmodules
Class UserLoginModule
java.lang.Object
net.sf.jguard.authentication.loginmodules.UserLoginModule
- All Implemented Interfaces:
- javax.security.auth.spi.LoginModule
- Direct Known Subclasses:
- JdbcLoginModule, JNDILoginModule, XmlLoginModule
public abstract class UserLoginModule
- extends java.lang.Object
- implements javax.security.auth.spi.LoginModule
Abstract LoginModule which provides convenient methods for loginmodule
involved in grabbing user account informations.
- Author:
- Charles Gay
|
Method Summary |
boolean |
abort()
remove Principals and Public/Private Credentials from Subject. |
java.lang.String |
getLogin()
|
java.lang.String |
getPassword()
|
void |
initialize(javax.security.auth.Subject subj,
javax.security.auth.callback.CallbackHandler cbk,
java.util.Map sState,
java.util.Map opts)
|
boolean |
logout()
remove Principals and Private/Public credentials from Subject. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.security.auth.spi.LoginModule |
commit, login |
subject
protected javax.security.auth.Subject subject
callbackHandler
protected javax.security.auth.callback.CallbackHandler callbackHandler
sharedState
protected java.util.Map sharedState
options
protected java.util.Map options
debug
protected boolean debug
login
protected java.lang.String login
password
protected char[] password
UserLoginModule
public UserLoginModule()
initialize
public void initialize(javax.security.auth.Subject subj,
javax.security.auth.callback.CallbackHandler cbk,
java.util.Map sState,
java.util.Map opts)
- Specified by:
initialize in interface javax.security.auth.spi.LoginModule
logout
public boolean logout()
throws javax.security.auth.login.LoginException
- remove Principals and Private/Public credentials from Subject.
- Specified by:
logout in interface javax.security.auth.spi.LoginModule
- Throws:
javax.security.auth.login.LoginException- See Also:
LoginModule.logout()
abort
public boolean abort()
throws javax.security.auth.login.LoginException
- remove Principals and Public/Private Credentials from Subject.
- Specified by:
abort in interface javax.security.auth.spi.LoginModule
- Throws:
javax.security.auth.login.LoginException- See Also:
LoginModule.abort()
getLogin
public java.lang.String getLogin()
throws javax.security.auth.login.LoginException
- Throws:
javax.security.auth.login.LoginException
getPassword
public java.lang.String getPassword()
throws javax.security.auth.login.LoginException
- Throws:
javax.security.auth.login.LoginException