Package org.flasby.login2.entity
Class Login
java.lang.Object
org.flasby.login2.entity.Login
- All Implemented Interfaces:
Principal
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkPassword
(ZeroingString<LoginException> plaintext, PasswordHandler onSuccess, PasswordHandler onFailure) getName()
getProperty
(String key) static void
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) final String
toString()
-
Field Details
-
roles
-
-
Constructor Details
-
Login
@SafeVarargs public Login(String loginID, String alias, String password, boolean disabled, Role... roles)
-
-
Method Details
-
main
-
getProperties
-
setPassword
sets the password and returns the password strength.
0 is very poor
5 is as good as it gets -
checkPassword
public void checkPassword(ZeroingString<LoginException> plaintext, PasswordHandler onSuccess, PasswordHandler onFailure) throws LoginException - Throws:
LoginException
-
getProperty
-
setProperty
-
toString
-
getName
-