Package org.conscrypt
Class OpenSSLRSAKeyFactory
- java.lang.Object
-
- java.security.KeyFactorySpi
-
- org.conscrypt.OpenSSLRSAKeyFactory
-
@Internal public final class OpenSSLRSAKeyFactory extends java.security.KeyFactorySpi
An implementation ofKeyFactorywhich uses BoringSSL to perform all the operations.
-
-
Constructor Summary
Constructors Constructor Description OpenSSLRSAKeyFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.security.PrivateKeyengineGeneratePrivate(java.security.spec.KeySpec keySpec)protected java.security.PublicKeyengineGeneratePublic(java.security.spec.KeySpec keySpec)protected <T extends java.security.spec.KeySpec>
TengineGetKeySpec(java.security.Key key, java.lang.Class<T> keySpec)protected java.security.KeyengineTranslateKey(java.security.Key key)
-
-
-
Method Detail
-
engineGeneratePublic
protected java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec keySpec) throws java.security.spec.InvalidKeySpecException- Specified by:
engineGeneratePublicin classjava.security.KeyFactorySpi- Throws:
java.security.spec.InvalidKeySpecException
-
engineGeneratePrivate
protected java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec keySpec) throws java.security.spec.InvalidKeySpecException- Specified by:
engineGeneratePrivatein classjava.security.KeyFactorySpi- Throws:
java.security.spec.InvalidKeySpecException
-
engineGetKeySpec
protected <T extends java.security.spec.KeySpec> T engineGetKeySpec(java.security.Key key, java.lang.Class<T> keySpec) throws java.security.spec.InvalidKeySpecException- Specified by:
engineGetKeySpecin classjava.security.KeyFactorySpi- Throws:
java.security.spec.InvalidKeySpecException
-
engineTranslateKey
protected java.security.Key engineTranslateKey(java.security.Key key) throws java.security.InvalidKeyException- Specified by:
engineTranslateKeyin classjava.security.KeyFactorySpi- Throws:
java.security.InvalidKeyException
-
-