Interface TokenBlobStrategy


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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      byte[] perform​(byte[] data)
      Perform the strategy on the byte array.
      byte[] reverse​(byte[] data)
      Performs the reverse strategy on the byte array.
    • Method Detail

      • perform

        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

        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.