Package org.flasby.entity
Class Users<Role>
java.lang.Object
org.flasby.entity.Users<Role>
- All Implemented Interfaces:
Principal
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkPassword
(String plaintext) boolean
getProperty
(String key) int
hashCode()
int
setPassword
(String plaintext) sets the password and returns the password strength.
0 is very poor
5 is as good as it getsvoid
setProperty
(String key, String value) toString()
-
Field Details
-
roles
-
-
Constructor Details
-
Users
@SafeVarargs public Users(String name, String alias, String password, boolean disabled, Role... roles)
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
getProperties
-
setPassword
sets the password and returns the password strength.
0 is very poor
5 is as good as it gets -
checkPassword
-
getProperty
-
setProperty
-
toString
-