Class TokenBlobStrategy


  • public class TokenBlobStrategy
    extends Object
    Responsible for selecting the appropriate algorithm for dealing with Token binary objects prior to them being stored in the data store.
    • Method Detail

      • perform

        public byte[] perform​(byte[] data)
                       throws TokenStrategyFailedException
        Perform the strategy on the byte array.
        Parameters:
        data - A possibly null byte[] to perform the strategy on.
        Returns:
        A modified copy of the byte[] or null if data was null.
        Throws:
        TokenStrategyFailedException - If an error occurred whilst processing the Token.
      • reverse

        public byte[] reverse​(byte[] data)
                       throws TokenStrategyFailedException
        Performs the reverse strategy on the byte array.
        Parameters:
        data - A possibly null byte[] to perform the reverse strategy on.
        Returns:
        A modified copy of the byte[] or null if data was null.
        Throws:
        TokenStrategyFailedException - If an error occurred whilst processing the Token.