Interface FieldStorageScheme
-
public interface FieldStorageSchemeThis interface defines a field storage scheme.- Since:
- 0.2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanfieldMatches(String plaintextfield, String storedField)Returns true if the supplied plain text field matches the supplied stored field after being encoded and compared, false otherwise.StringhashField(String plaintext)Returns a hashed, salted, and encoded version of the supplied plain text field.
-
-
-
Method Detail
-
hashField
String hashField(String plaintext)
Returns a hashed, salted, and encoded version of the supplied plain text field.- Parameters:
plaintext- a plain text version of the field to encode.- Returns:
- a hashed, salted, and encoded field.
-
fieldMatches
boolean fieldMatches(String plaintextfield, String storedField)
Returns true if the supplied plain text field matches the supplied stored field after being encoded and compared, false otherwise.- Parameters:
plaintextfield- the plain text field to compare.storedField- the encoded field to compare.- Returns:
- true if the fields match, false otherwise.
-
-