Class FipsKeyUnwrapper<T extends Parameters>

  • Type Parameters:
    T - the parameters type associated with the final implementation of this key unwrapper.
    All Implemented Interfaces:
    KeyUnwrapper<T>
    Direct Known Subclasses:
    FipsKeyUnwrapperUsingSecureRandom

    public abstract class FipsKeyUnwrapper<T extends Parameters>
    extends java.lang.Object
    implements KeyUnwrapper<T>
    Base class for the approved mode KeyUnwrapper implementations.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract byte[] unwrap​(byte[] in, int inOff, int inLen)
      Return the unwrapped byte encoding of a key.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • unwrap

        public abstract byte[] unwrap​(byte[] in,
                                      int inOff,
                                      int inLen)
                               throws InvalidWrappingException
        Description copied from interface: KeyUnwrapper
        Return the unwrapped byte encoding of a key.
        Specified by:
        unwrap in interface KeyUnwrapper<T extends Parameters>
        Parameters:
        in - input data array.
        inOff - offset into data array wrapped key starts at.
        inLen - length of wrapped key data.
        Returns:
        the unwrapped byte encoding of the key.
        Throws:
        InvalidWrappingException - if the wrapping cannot be processed.