Class FipsKeyWrapOperatorFactory<T extends Parameters,K extends Key>

java.lang.Object
org.bouncycastle.crypto.fips.FipsKeyWrapOperatorFactory<T,K>
Type Parameters:
T - the parameters type associated with the final implementation of this factory.
All Implemented Interfaces:
KeyWrapOperatorFactory<T,K>
Direct Known Subclasses:
FipsAES.KeyWrapOperatorFactory, FipsRSA.KeyWrapOperatorFactory, FipsTripleDES.KeyWrapOperatorFactory

public abstract class FipsKeyWrapOperatorFactory<T extends Parameters,K extends Key> extends Object implements KeyWrapOperatorFactory<T,K>
Base class for the approved mode KeyWrapOperatorFactory implementations.
  • Method Details

    • createKeyWrapper

      public abstract FipsKeyWrapper<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 abstract FipsKeyUnwrapper<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.