@Deprecated public class Sha1PasswordHandler extends Object implements PasswordHandler
Constructor and Description |
---|
Sha1PasswordHandler(AuthSubject authSubject)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
applyPassword(String password)
Deprecated.
Hashes and sets the password, clears the salt, sets the last changed date for the password
|
String |
calculatePasswordResetDigest()
Deprecated.
Calculates, sets and returns a salted digest which can be used for the "Forgot password?" function.
|
boolean |
isValidPassword(String password)
Deprecated.
Checks whether the password is valid for the current
AuthSubject . |
boolean |
isValidPasswordResetDigest(String digest)
Deprecated.
Checks whether the digest is valid for the current
AuthSubject . |
void |
migrate(CoreService service,
String password)
Deprecated.
Migrates passwords of the current
PasswordHandler instance to passwords handled by
CoreService.getDefaultPasswordHandler(org.appng.api.model.AuthSubject) . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPasswordResetDigest, savePassword, updateSubject
public Sha1PasswordHandler(AuthSubject authSubject)
public void applyPassword(String password)
PasswordHandler
applyPassword
in interface PasswordHandler
password
- The cleartext password.AuthSubject.setDigest(String)
,
AuthSubject.setSalt(String)
,
AuthSubject.setPasswordLastChanged(java.util.Date)
public boolean isValidPassword(String password)
PasswordHandler
AuthSubject
.isValidPassword
in interface PasswordHandler
password
- The cleartext password.true
if the password is valid, false if it is invalid.AuthSubject.getDigest()
public String calculatePasswordResetDigest()
PasswordHandler
calculatePasswordResetDigest
in interface PasswordHandler
AuthSubject.setSalt(String)
,
PasswordHandler.isValidPasswordResetDigest(String)
public boolean isValidPasswordResetDigest(String digest)
PasswordHandler
AuthSubject
.isValidPasswordResetDigest
in interface PasswordHandler
digest
- The digest.true
if the digest is valid, false if it is invalid.AuthSubject.getSalt()
,
PasswordHandler.calculatePasswordResetDigest()
public void migrate(CoreService service, String password)
PasswordHandler
PasswordHandler
instance to passwords handled by
CoreService.getDefaultPasswordHandler(org.appng.api.model.AuthSubject)
.migrate
in interface PasswordHandler
service
- Instance of CoreService
password
- The current password.Copyright © 2011–2020 aiticon GmbH. All rights reserved.