| java.lang.Object net.jforum.sso.SSOUtils
SSOUtils | public class SSOUtils (Code) | | General utilities to use with SSO.
author: Rafael Steil version: $Id: SSOUtils.java,v 1.6 2006/08/20 22:47:43 rafaelsteil Exp $ |
Method Summary | |
public User | getUser() Gets the user associated to this class instance. | public void | register(String password, String email) Registers a new user. | public boolean | userExists(String username) Checks if an user exists in the database
Parameters: username - The username to check true if the user exists. |
getUser | public User getUser()(Code) | | Gets the user associated to this class instance.
the user |
register | public void register(String password, String email)(Code) | | Registers a new user.
This method should be used together with
SSOUtils.userExists(String) .
Parameters: password - the user's password. It should be the real / final password. In other words, the data passed as password is the data that'll bewritten to the database Parameters: email - the user's email See Also: SSOUtils.getUser() |
|
|