Class RSAKeyFactory


  • public class RSAKeyFactory
    extends KeyFactorySpi
    KeyFactory for RSA keys. Keys must be instances of PublicKey or PrivateKey and getAlgorithm() must return "RSA". For such keys, it supports conversion between the following: For public keys: . PublicKey with an X.509 encoding . RSAPublicKey . RSAPublicKeySpec . X509EncodedKeySpec For private keys: . RSAPrivateKey . RSAPrivateKeySpec . PKCS8EncodedKeySpec (of course, CRT variants only for CRT keys)