Interface StringValidator

  • All Superinterfaces:
    Validator<String>

    public interface StringValidator
    extends Validator<String>
    A Validator 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, use Validator or StringValidator instead.

    Copyright © 2017 Carlos Macasaet.

    Author:
    Carlos Macasaet
    • 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 interface Validator<String>
        Returns:
        a method for converting the decrypted payload into a domain object