public class SaltedPasswordHandler extends java.lang.Object implements PasswordHandler
| Constructor and Description |
|---|
SaltedPasswordHandler() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isHashed()
Is the password value hashed ? If so we can display it.
|
boolean |
passwordValid(PasswordRecord pr,
java.lang.String password)
Is the password correct ?
|
void |
passwordWrite(PasswordRecord pr,
java.lang.String password)
Store the password in the encoded form.
|
public boolean passwordValid(@Nonnull
PasswordRecord pr,
@Nullable
java.lang.String password)
passwordValid in interface PasswordHandlerpr - the stored password record to checkpassword - the password to checkpublic void passwordWrite(@Nonnull
PasswordRecord pr,
@Nonnull
java.lang.String password)
throws java.lang.Exception
passwordWrite in interface PasswordHandlerpr - the password record.password - the password to encode and store.java.lang.Exception - a serious problem.public boolean isHashed()
PasswordHandlerisHashed in interface PasswordHandlerstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.