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