Package com.exedio.cope.pattern
Class Hash.PlainTextValidator
java.lang.Object
com.exedio.cope.pattern.Hash.PlainTextValidator
- Direct Known Subclasses:
DigitPinValidator
- Enclosing class:
- Hash
Validate plain text for potential limits, to be specified in sub classes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
newRandomPlainText
(SecureRandom secureRandom) Creates a plain text variant to redeem an existing password (password forgotten).protected abstract void
-
Constructor Details
-
PlainTextValidator
public PlainTextValidator()
-
-
Method Details
-
validate
protected abstract void validate(String plainText, Item exceptionItem, Hash hash) throws Hash.InvalidPlainTextException - Throws:
Hash.InvalidPlainTextException
-
newRandomPlainText
Creates a plain text variant to redeem an existing password (password forgotten). The result MUST be valid according tovalidate(String, Item, Hash)
.
-