|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.security.PasswordUtil
public abstract class PasswordUtil
Static methods for dealing with password hashes and the "password" table.
Used primarily by AdminImpl
SecuritySystem
,
AdminImpl
Constructor Summary | |
---|---|
PasswordUtil()
|
Method Summary | |
---|---|
static void |
changeUserPasswordById(org.springframework.jdbc.core.simple.SimpleJdbcOperations jdbc,
Long id,
String password)
|
static String |
generateRandomPasswd()
|
static String |
getDnById(org.springframework.jdbc.core.simple.SimpleJdbcOperations jdbc,
Long id)
|
static String |
getUserPasswordHash(org.springframework.jdbc.core.simple.SimpleJdbcOperations jdbc,
Long id)
|
static void |
main(String[] args)
Main method which takes exactly one argument, passes it to preparePassword(String) and prints the results on
System.out . |
static String |
passwordDigest(String clearText)
Creates an MD5 hash of the given clear text and base64 encodes it. |
static String |
preparePassword(String newPassword)
|
static List<String> |
userGroups(org.springframework.jdbc.core.simple.SimpleJdbcOperations jdbc,
String name)
|
static Long |
userId(org.springframework.jdbc.core.simple.SimpleJdbcOperations jdbc,
String name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PasswordUtil()
Method Detail |
---|
public static void main(String[] args)
preparePassword(String)
and prints the results on
System.out
. This is used by the build system to define the
"@ROOTPASS@" placeholder in data.sql.
public static String generateRandomPasswd()
public static String getDnById(org.springframework.jdbc.core.simple.SimpleJdbcOperations jdbc, Long id)
public static void changeUserPasswordById(org.springframework.jdbc.core.simple.SimpleJdbcOperations jdbc, Long id, String password)
public static String getUserPasswordHash(org.springframework.jdbc.core.simple.SimpleJdbcOperations jdbc, Long id)
public static Long userId(org.springframework.jdbc.core.simple.SimpleJdbcOperations jdbc, String name)
public static List<String> userGroups(org.springframework.jdbc.core.simple.SimpleJdbcOperations jdbc, String name)
public static String preparePassword(String newPassword)
public static String passwordDigest(String clearText)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.