|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.security.auth.PasswordUtil
public class PasswordUtil
Static methods for dealing with password hashes and the "password" table.
Used primarily by AdminImpl
SecuritySystem
,
AdminImpl
Constructor Summary | |
---|---|
PasswordUtil(org.springframework.jdbc.core.simple.SimpleJdbcOperations jdbc)
|
Method Summary | |
---|---|
void |
changeUserPasswordById(Long id,
String password)
|
String |
generateRandomPasswd()
|
String |
getDnById(Long id)
|
String |
getUserPasswordHash(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 . |
String |
passwordDigest(String clearText)
Creates an MD5 hash of the given clear text and base64 encodes it. |
String |
preparePassword(String newPassword)
|
List<String> |
userGroups(String name)
|
Long |
userId(String name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PasswordUtil(org.springframework.jdbc.core.simple.SimpleJdbcOperations jdbc)
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 String generateRandomPasswd()
public String getDnById(Long id)
public void changeUserPasswordById(Long id, String password)
public String getUserPasswordHash(Long id)
public Long userId(String name)
public List<String> userGroups(String name)
public String preparePassword(String newPassword)
public String passwordDigest(String clearText)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta4.2.1-r8614-Beta4.2-b41
Copyright © 2009 The University of Dundee. All Rights Reserved.