public class RsaKeyFactory
extends java.security.KeyFactorySpi
RsaKeyFactory extends KeyFactorySpi for importing software RSA keys into
CloudHSM.
This provides an implementation for the “RSA” transformation string.
CloudHSM-specific attributes may be set by providing a KeyAttributesMap to KeyFactory::generatePublic() or KeyFactory::generatePrivate() methods. Otherwise, key
attributes will be derived from the provided KeySpec. This implementation supports RSAPrivateCrtKeySpec or PKCS8EncodedKeySpec for private keys, and RSAPublicKeySpec or X509EncodedKeySpec for public keys.
KeyFactory,
KeyAttributesMap,
KeySpec| Constructor and Description |
|---|
RsaKeyFactory(CloudHsmProvider provider)
Constructs this
KeyFactorySpi. |
public RsaKeyFactory(CloudHsmProvider provider) throws java.lang.IllegalStateException
KeyFactorySpi.provider - CloudHSM provider offering this service.java.lang.IllegalStateException - when provider is null.