Package com.macasaet.fernet
Interface StringValidator
-
public interface StringValidator extends Validator<String>
AValidatorfor 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, useValidatororStringObjectValidatorinstead.Copyright © 2017 Carlos Macasaet.
- Author:
- Carlos Macasaet
-
-
Method Summary
Modifier and Type Method Description default CharsetgetCharset()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:ValidatorImplement this to define how decrypted content is deserialised into domain objects.- Specified by:
getTransformerin interfaceValidator<String>- Returns:
- a method for converting the decrypted payload into a domain object
-
-