Package org.bouncycastle.crypto.general
Class RSA.KeyWrapOperatorFactory
- java.lang.Object
-
- org.bouncycastle.crypto.general.RSA.KeyWrapOperatorFactory
-
- All Implemented Interfaces:
KeyWrapOperatorFactory<RSA.WrapParameters,AsymmetricRSAKey>
- Enclosing class:
- RSA
public static final class RSA.KeyWrapOperatorFactory extends java.lang.Object implements KeyWrapOperatorFactory<RSA.WrapParameters,AsymmetricRSAKey>
Factory for creating non-FIPS RSA key wrap/unwrap operators.
-
-
Constructor Summary
Constructors Constructor Description KeyWrapOperatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyUnwrapperUsingSecureRandom<RSA.WrapParameters>
createKeyUnwrapper(AsymmetricRSAKey key, RSA.WrapParameters parameters)
Create a key un-wrapper using the passed in key and parameters.KeyWrapperUsingSecureRandom<RSA.WrapParameters>
createKeyWrapper(AsymmetricRSAKey key, RSA.WrapParameters parameters)
Create a key wrapper using the passed in key and parameters.
-
-
-
Method Detail
-
createKeyWrapper
public KeyWrapperUsingSecureRandom<RSA.WrapParameters> createKeyWrapper(AsymmetricRSAKey key, RSA.WrapParameters parameters)
Description copied from interface:KeyWrapOperatorFactory
Create a key wrapper using the passed in key and parameters.- Specified by:
createKeyWrapper
in interfaceKeyWrapOperatorFactory<RSA.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 KeyUnwrapperUsingSecureRandom<RSA.WrapParameters> createKeyUnwrapper(AsymmetricRSAKey key, RSA.WrapParameters parameters)
Description copied from interface:KeyWrapOperatorFactory
Create a key un-wrapper using the passed in key and parameters.- Specified by:
createKeyUnwrapper
in interfaceKeyWrapOperatorFactory<RSA.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.
-
-