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 -
Method Summary
Modifier and TypeMethodDescriptioncreateKeyUnwrapper(AsymmetricRSAKey key, FipsRSA.WrapParameters parameters) Create a key un-wrapper using the passed in key and parameters.createKeyWrapper(AsymmetricRSAKey key, FipsRSA.WrapParameters parameters) Create a key wrapper using the passed in key and parameters.
-
Constructor Details
-
KeyWrapOperatorFactory
public KeyWrapOperatorFactory()
-
-
Method Details
-
createKeyWrapper
public FipsKeyWrapperUsingSecureRandom<FipsRSA.WrapParameters> createKeyWrapper(AsymmetricRSAKey key, FipsRSA.WrapParameters parameters) Description copied from interface:KeyWrapOperatorFactoryCreate a key wrapper using the passed in key and parameters.- Specified by:
createKeyWrapperin interfaceKeyWrapOperatorFactory<FipsRSA.WrapParameters,AsymmetricRSAKey> - Specified by:
createKeyWrapperin 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:KeyWrapOperatorFactoryCreate a key un-wrapper using the passed in key and parameters.- Specified by:
createKeyUnwrapperin interfaceKeyWrapOperatorFactory<FipsRSA.WrapParameters,AsymmetricRSAKey> - Specified by:
createKeyUnwrapperin 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.
-