Package org.conscrypt

Class ScryptSecretKeyFactory


  • @Internal
    public class ScryptSecretKeyFactory
    extends javax.crypto.SecretKeyFactorySpi
    • Constructor Detail

      • ScryptSecretKeyFactory

        public ScryptSecretKeyFactory()
    • Method Detail

      • engineGenerateSecret

        protected javax.crypto.SecretKey engineGenerateSecret​(java.security.spec.KeySpec inKeySpec)
                                                       throws java.security.spec.InvalidKeySpecException
        Specified by:
        engineGenerateSecret in class javax.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.NoSuchMethodException
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalAccessException
      • engineGetKeySpec

        protected java.security.spec.KeySpec engineGetKeySpec​(javax.crypto.SecretKey secretKey,
                                                              java.lang.Class aClass)
                                                       throws java.security.spec.InvalidKeySpecException
        Specified by:
        engineGetKeySpec in class javax.crypto.SecretKeyFactorySpi
        Throws:
        java.security.spec.InvalidKeySpecException
      • engineTranslateKey

        protected javax.crypto.SecretKey engineTranslateKey​(javax.crypto.SecretKey secretKey)
                                                     throws java.security.InvalidKeyException
        Specified by:
        engineTranslateKey in class javax.crypto.SecretKeyFactorySpi
        Throws:
        java.security.InvalidKeyException