Class Serpent.KeyWrapOperatorFactory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      KeyUnwrapper<T> createKeyUnwrapper​(K key, T parameters)
      Create a key un-wrapper using the passed in key and parameters.
      KeyWrapper<T> createKeyWrapper​(K key, T parameters)
      Create a key wrapper using the passed in key and parameters.
      protected Wrapper createWrapper​(boolean forWrapping, SymmetricKey key, Serpent.WrapParameters parameters, java.security.SecureRandom random)  
      • Methods inherited from class java.lang.Object

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

      • KeyWrapOperatorFactory

        public KeyWrapOperatorFactory()
    • Method Detail

      • createKeyWrapper

        public KeyWrapper<T> createKeyWrapper​(K key,
                                              T parameters)
        Description copied from interface: KeyWrapOperatorFactory
        Create a key wrapper using the passed in key and parameters.
        Specified by:
        createKeyWrapper in interface KeyWrapOperatorFactory<T extends Parameters,​K extends Key>
        Parameters:
        key - the key to initialize the wrapper with.
        parameters - the parameters to initialize the wrapper with.
        Returns:
        an initialized key wrapper.
      • createKeyUnwrapper

        public KeyUnwrapper<T> createKeyUnwrapper​(K key,
                                                  T parameters)
        Description copied from interface: KeyWrapOperatorFactory
        Create a key un-wrapper using the passed in key and parameters.
        Specified by:
        createKeyUnwrapper in interface KeyWrapOperatorFactory<T extends Parameters,​K extends Key>
        Parameters:
        key - the key to initialize the un-wrapper with.
        parameters - the parameters to initialize the un-wrapper with.
        Returns:
        an initialized key un-wrapper.