|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.samskivert.servlet.user.UserUtil
public class UserUtil
User related utility functions.
| Constructor Summary | |
|---|---|
UserUtil()
|
|
| Method Summary | |
|---|---|
static String |
encryptPassword(String password)
Encrypts the supplied username and password and returns the value that would be stored in the user record were the password to be updated via User.setPassword(java.lang.String). |
static String |
genAuthCode(User user)
Generates a new random session identifier for the supplied user. |
static String |
legacyEncrypt(String username,
String password,
boolean ignoreUserCase)
Encrypts passwords the way we used to. |
static void |
main(String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserUtil()
| Method Detail |
|---|
public static String genAuthCode(User user)
public static String encryptPassword(String password)
User.setPassword(java.lang.String).
public static String legacyEncrypt(String username,
String password,
boolean ignoreUserCase)
public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||