public class LegacySHA1PasswordHandler extends java.lang.Object implements PasswordHandler
Constructor and Description |
---|
LegacySHA1PasswordHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
isHashed()
Is the password value hashed ? If so we can display it.
|
static java.lang.String |
makeSHA1(java.lang.String realPassword)
get Sha1 Password
|
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 PasswordHandler
pr
- the stored password record to checkpassword
- the password to check@Nonnull @CheckReturnValue public static java.lang.String makeSHA1(java.lang.String realPassword) throws java.lang.Exception
realPassword
- java.lang.Exception
- a serious problem.public void passwordWrite(@Nonnull PasswordRecord pr, @Nonnull java.lang.String password) throws java.lang.Exception
passwordWrite
in interface PasswordHandler
pr
- the password record.password
- the password to encode and store.java.lang.Exception
- a serious problem.public boolean isHashed()
PasswordHandler
isHashed
in interface PasswordHandler
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.