Package org.bouncycastle.crypto.fips
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 java.lang.Object implements KeyWrapOperatorFactory<T,K>
Base class for the approved mode KeyWrapOperatorFactory implementations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract FipsKeyUnwrapper<T>
createKeyUnwrapper(K key, T parameters)
Create a key un-wrapper using the passed in key and parameters.abstract FipsKeyWrapper<T>
createKeyWrapper(K key, T parameters)
Create a key wrapper using the passed in key and parameters.
-
-
-
Method Detail
-
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 interfaceKeyWrapOperatorFactory<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 interfaceKeyWrapOperatorFactory<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.
-
-