Modifier and Type | Field and Description |
---|---|
static int |
SALT_BYTE_SIZE |
Constructor and Description |
---|
SSHAHash() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
create(java.lang.String plaintext) |
java.lang.String |
create(java.lang.String plaintext,
byte[] salt) |
boolean |
matchesAlgorithm(java.lang.String password) |
boolean |
validate(java.lang.String plaintext,
java.lang.String hash) |
public static final int SALT_BYTE_SIZE
public java.lang.String create(java.lang.String plaintext) throws ServerFault
create
in interface Hash
ServerFault
public java.lang.String create(java.lang.String plaintext, byte[] salt) throws ServerFault
ServerFault
public boolean validate(java.lang.String plaintext, java.lang.String hash) throws ServerFault
validate
in interface Hash
ServerFault
public boolean matchesAlgorithm(java.lang.String password)
matchesAlgorithm
in interface Hash
Copyright © 2021. All Rights Reserved.