com.clra.member
Class Authentication
java.lang.Object
|
+--com.clra.member.Authentication
- All Implemented Interfaces:
- javax.security.auth.callback.CallbackHandler, Serializable
- public class Authentication
- extends Object
- implements javax.security.auth.callback.CallbackHandler, Serializable
Authenticates a user during login, and releases the authentication
during logout.
Note: This class is NOT secure, because it stores passwords in plain
text. This isn't an issue for the CLRA, unless the club starts
doing e-commerce. The plain-text issue is important when web objects
use Authentication instances, because they typically stick them into
HttpSessions, where they can be deserialized to any old location.
- Version:
- $Id: Authentication.java,v 1.2 2002/02/18 18:03:10 rphall Exp $
- Author:
- Rick Hall
- See Also:
- Serialized Form
Method Summary |
protected void |
finalize()
|
void |
handle(javax.security.auth.callback.Callback[] callbacks)
|
void |
login()
|
void |
logout()
|
Authentication
public Authentication(String user,
String password)
login
public void login()
throws javax.security.auth.login.LoginException
logout
public void logout()
throws javax.security.auth.login.LoginException
finalize
protected void finalize()
- Overrides:
finalize
in class Object
handle
public void handle(javax.security.auth.callback.Callback[] callbacks)
throws IOException,
javax.security.auth.callback.UnsupportedCallbackException
- Specified by:
handle
in interface javax.security.auth.callback.CallbackHandler