public interface PasswordHandler
AuthSubject as argument.| Modifier and Type | Method and Description |
|---|---|
void |
applyPassword(String password)
Hashes and sets the password, clears the salt, sets the last changed date for the password
|
String |
calculatePasswordResetDigest()
Calculates, sets and returns a salted digest which can be used for the "Forgot password?" function.
|
default String |
getPasswordResetDigest()
Deprecated.
will be removed in 2.x
|
boolean |
isValidPassword(String password)
Checks whether the password is valid for the current
AuthSubject. |
boolean |
isValidPasswordResetDigest(String digest)
Checks whether the digest is valid for the current
AuthSubject. |
void |
migrate(CoreService service,
String password)
Migrates passwords of the current
PasswordHandler instance to passwords handled by
CoreService.getDefaultPasswordHandler(org.appng.api.model.AuthSubject). |
default void |
savePassword(String password)
Deprecated.
will be removed in 2.x
|
default void |
updateSubject(CoreService service)
Deprecated.
will be removed in 2.x
|
void applyPassword(String password)
password - The cleartext password.AuthSubject.setDigest(String),
AuthSubject.setSalt(String),
AuthSubject.setPasswordLastChanged(java.util.Date)boolean isValidPassword(String password)
AuthSubject.password - The cleartext password.true if the password is valid, false if it is invalid.AuthSubject.getDigest()String calculatePasswordResetDigest()
AuthSubject.setSalt(String),
isValidPasswordResetDigest(String)boolean isValidPasswordResetDigest(String digest)
AuthSubject.digest - The digest.true if the digest is valid, false if it is invalid.AuthSubject.getSalt(),
calculatePasswordResetDigest()void migrate(CoreService service, String password)
PasswordHandler instance to passwords handled by
CoreService.getDefaultPasswordHandler(org.appng.api.model.AuthSubject).service - Instance of CoreServicepassword - The current password.@Deprecated default void updateSubject(CoreService service) throws BusinessException
BusinessException@Deprecated default String getPasswordResetDigest()
@Deprecated default void savePassword(String password)
Copyright © 2011–2022 aiticon GmbH. All rights reserved.