Modifier | Constructor and Description |
---|---|
protected |
JPAUser() |
|
JPAUser(String userName,
String password,
String alg) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getUserName()
Return the user name of this user
|
int |
hashCode() |
boolean |
setPassword(String newPass)
Sets new password from String.
|
String |
toString() |
boolean |
verifyPassword(String pass)
Return true if pass matches password of this user.
|
public String getUserName()
User
getUserName
in interface User
User.getUserName()
public boolean setPassword(String newPass)
User
setPassword
in interface User
newPass
- the String that is the new password.User.setPassword(java.lang.String)
public boolean verifyPassword(String pass)
User
verifyPassword
in interface User
pass
- the password to testUser.verifyPassword(java.lang.String)
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.