Package org.conscrypt
Class ScryptSecretKeyFactory
- java.lang.Object
-
- javax.crypto.SecretKeyFactorySpi
-
- org.conscrypt.ScryptSecretKeyFactory
-
@Internal public class ScryptSecretKeyFactory extends javax.crypto.SecretKeyFactorySpi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classScryptSecretKeyFactory.NotImplementedExceptionprivate static classScryptSecretKeyFactory.ScryptKey
-
Constructor Summary
Constructors Constructor Description ScryptSecretKeyFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.crypto.SecretKeyengineGenerateSecret(java.security.spec.KeySpec inKeySpec)protected java.security.spec.KeySpecengineGetKeySpec(javax.crypto.SecretKey secretKey, java.lang.Class aClass)protected javax.crypto.SecretKeyengineTranslateKey(javax.crypto.SecretKey secretKey)private java.lang.ObjectgetValue(java.security.spec.KeySpec spec, java.lang.String methodName)
-
-
-
Method Detail
-
engineGenerateSecret
protected javax.crypto.SecretKey engineGenerateSecret(java.security.spec.KeySpec inKeySpec) throws java.security.spec.InvalidKeySpecException- Specified by:
engineGenerateSecretin classjavax.crypto.SecretKeyFactorySpi- Throws:
java.security.spec.InvalidKeySpecException
-
getValue
private java.lang.Object getValue(java.security.spec.KeySpec spec, java.lang.String methodName) throws java.lang.NoSuchMethodException, java.lang.reflect.InvocationTargetException, java.lang.IllegalAccessException- Throws:
java.lang.NoSuchMethodExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.IllegalAccessException
-
engineGetKeySpec
protected java.security.spec.KeySpec engineGetKeySpec(javax.crypto.SecretKey secretKey, java.lang.Class aClass) throws java.security.spec.InvalidKeySpecException- Specified by:
engineGetKeySpecin classjavax.crypto.SecretKeyFactorySpi- Throws:
java.security.spec.InvalidKeySpecException
-
engineTranslateKey
protected javax.crypto.SecretKey engineTranslateKey(javax.crypto.SecretKey secretKey) throws java.security.InvalidKeyException- Specified by:
engineTranslateKeyin classjavax.crypto.SecretKeyFactorySpi- Throws:
java.security.InvalidKeyException
-
-