Interface FieldStorageScheme
public interface FieldStorageScheme
This interface defines a field storage scheme.
- Since:
- 0.2.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleanfieldMatches(String plaintextfield, String storedField) Returns true if the supplied plain text field matches the supplied stored field after being encoded and compared, false otherwise.Returns a hashed, salted, and encoded version of the supplied plain text field.
-
Method Details
-
hashField
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
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.
-