Package com.macasaet.fernet
Interface StringValidator
-
public interface StringValidator extends Validator<String>
AValidator
for String payloads. This is useful if your payload contains unique identifiers like user names. If the payload is a structured String like JSON or XML, useValidator
orStringValidator
instead.Copyright © 2017 Carlos Macasaet.
- Author:
- Carlos Macasaet
-
-
Method Summary
Modifier and Type Method Description default Charset
getCharset()
default Function<byte[],String>
getTransformer()
Implement this to define how decrypted content is deserialised into domain objects.-
Methods inherited from interface com.macasaet.fernet.Validator
getClock, getMaxClockSkew, getObjectValidator, getTimeToLive, validateAndDecrypt, validateAndDecrypt
-
-
-
-
Method Detail
-
getCharset
default Charset getCharset()
-
getTransformer
default Function<byte[],String> getTransformer()
Description copied from interface:Validator
Implement this to define how decrypted content is deserialised into domain objects.- Specified by:
getTransformer
in interfaceValidator<String>
- Returns:
- a method for converting the decrypted payload into a domain object
-
-