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 Object
implements KeyWrapOperatorFactory<RSA.WrapParameters,AsymmetricRSAKey>
Factory for creating non-FIPS RSA key wrap/unwrap operators.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateKeyUnwrapper
(AsymmetricRSAKey key, RSA.WrapParameters parameters) Create a key un-wrapper using the passed in key and parameters.createKeyWrapper
(AsymmetricRSAKey key, RSA.WrapParameters parameters) Create a key wrapper using the passed in key and parameters.
-
Constructor Details
-
KeyWrapOperatorFactory
public KeyWrapOperatorFactory()
-
-
Method Details
-
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.
-