Interface StringCodec

    • Method Detail

      • encode

        String encode​(String plain)
        Encodes a string of characters.
        Parameters:
        plain - the string to encode
        Returns:
        the encoded string
      • decode

        String decode​(String encoded)
        Decodes a string of characters. Some encoding strategies are one-way, in which case the decoding might return null.
        Parameters:
        encoded - the previously encoded string
        Returns:
        the decoded string or null if no decoding is possible