Interface KeyWrapper<T extends Parameters>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T getParameters()
      Return the parameters for this wrapper.
      byte[] wrap​(byte[] in, int inOff, int inLen)
      Return the wrapped version of a key byte encoding.
    • Method Detail

      • getParameters

        T getParameters()
        Return the parameters for this wrapper.
        Returns:
        the wrapper's parameters.
      • wrap

        byte[] wrap​(byte[] in,
                    int inOff,
                    int inLen)
             throws PlainInputProcessingException
        Return the wrapped version of a key byte encoding.
        Parameters:
        in - input data array.
        inOff - offset into data array key data starts at.
        inLen - length of key data.
        Returns:
        the wrapped encoding of the key.
        Throws:
        PlainInputProcessingException - if the passed in input cannot be processed.