Package org.bouncycastle.crypto.fips
Class FipsRSA.KeyWrapOperatorFactory
- java.lang.Object
-
- org.bouncycastle.crypto.fips.FipsKeyWrapOperatorFactory<FipsRSA.WrapParameters,AsymmetricRSAKey>
-
- org.bouncycastle.crypto.fips.FipsRSA.KeyWrapOperatorFactory
-
- All Implemented Interfaces:
KeyWrapOperatorFactory<FipsRSA.WrapParameters,AsymmetricRSAKey>
- Enclosing class:
- FipsRSA
public static final class FipsRSA.KeyWrapOperatorFactory extends FipsKeyWrapOperatorFactory<FipsRSA.WrapParameters,AsymmetricRSAKey>
Factory for creating RSA key wrap/unwrap operators.
-
-
Constructor Summary
Constructors Constructor Description KeyWrapOperatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FipsKeyUnwrapperUsingSecureRandom<FipsRSA.WrapParameters>
createKeyUnwrapper(AsymmetricRSAKey key, FipsRSA.WrapParameters parameters)
Create a key un-wrapper using the passed in key and parameters.FipsKeyWrapperUsingSecureRandom<FipsRSA.WrapParameters>
createKeyWrapper(AsymmetricRSAKey key, FipsRSA.WrapParameters parameters)
Create a key wrapper using the passed in key and parameters.
-
-
-
Method Detail
-
createKeyWrapper
public FipsKeyWrapperUsingSecureRandom<FipsRSA.WrapParameters> createKeyWrapper(AsymmetricRSAKey key, FipsRSA.WrapParameters parameters)
Description copied from interface:KeyWrapOperatorFactory
Create a key wrapper using the passed in key and parameters.- Specified by:
createKeyWrapper
in interfaceKeyWrapOperatorFactory<FipsRSA.WrapParameters,AsymmetricRSAKey>
- Specified by:
createKeyWrapper
in classFipsKeyWrapOperatorFactory<FipsRSA.WrapParameters,AsymmetricRSAKey>
- Parameters:
key
- the key to initialize the wrapper with.parameters
- the parameters to initialize the wrapper with.- Returns:
- an initialized key wrapper.
-
createKeyUnwrapper
public FipsKeyUnwrapperUsingSecureRandom<FipsRSA.WrapParameters> createKeyUnwrapper(AsymmetricRSAKey key, FipsRSA.WrapParameters parameters)
Description copied from interface:KeyWrapOperatorFactory
Create a key un-wrapper using the passed in key and parameters.- Specified by:
createKeyUnwrapper
in interfaceKeyWrapOperatorFactory<FipsRSA.WrapParameters,AsymmetricRSAKey>
- Specified by:
createKeyUnwrapper
in classFipsKeyWrapOperatorFactory<FipsRSA.WrapParameters,AsymmetricRSAKey>
- 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.
-
-