com.samskivert.servlet.user
Class UserUtil

java.lang.Object
  extended by com.samskivert.servlet.user.UserUtil

public class UserUtil
extends Object

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

UserUtil

public UserUtil()
Method Detail

genAuthCode

public static String genAuthCode(User user)
Generates a new random session identifier for the supplied user.


encryptPassword

public 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).


legacyEncrypt

public static String legacyEncrypt(String username,
                                   String password,
                                   boolean ignoreUserCase)
Encrypts passwords the way we used to.


main

public static void main(String[] args)


Copyright © 2000-2008 Michael Bayne. All Rights Reserved.