| java.lang.Object velosurf.web.auth.BaseAuthenticator
All known Subclasses: velosurf.web.auth.SimpleDBAuthenticator,
BaseAuthenticator | abstract public class BaseAuthenticator (Code) | | This abstract class implements an authentication mechanism. It is meant to be declared
in toolbox.xml as a session-scoped tool.
The password encryption method can be specified in toolbox.xml using the method parameter
(when not specified, passwords are passed in clear).
You will need to implement the same password encryption on the client side using the adequate
javascript files. A /src/javascript/md5.js file is provided to help implementing the HmacMD5 method.
Still, if you really want security, use HTTPS!
author: Claude Brisson |
checkLogin | public boolean checkLogin(String login, String answer)(Code) | | Check received answer.
Parameters: login - login Parameters: answer - received answer true if received answer is valid |
configure | public void configure(Map config)(Code) | | configure this tool.
Parameters: config - map containing an optional "method" parameter |
getChallenge | public String getChallenge()(Code) | | This method generates a new challenge each time it is called.
a new 1024-bit challenge in base64 |
getPassword | abstract public String getPassword(String login)(Code) | | get the password corresponding to a login.
Parameters: login - login password or null |
getUser | abstract public Object getUser(String login)(Code) | | Get the user object corresponding to a login
Parameters: login - login user object |
init | public void init(Object initData)(Code) | | initialize this tool.
Parameters: initData - a view context |
|
|