Class BaseSecretKeyFactory

    • Constructor Detail

      • BaseSecretKeyFactory

        protected BaseSecretKeyFactory​(java.lang.String algName,
                                       ASN1ObjectIdentifier algOid)
    • Method Detail

      • engineGenerateSecret

        protected javax.crypto.SecretKey engineGenerateSecret​(java.security.spec.KeySpec keySpec)
                                                       throws java.security.spec.InvalidKeySpecException
        Specified by:
        engineGenerateSecret in class javax.crypto.SecretKeyFactorySpi
        Throws:
        java.security.spec.InvalidKeySpecException
      • engineGetKeySpec

        protected java.security.spec.KeySpec engineGetKeySpec​(javax.crypto.SecretKey key,
                                                              java.lang.Class keySpec)
                                                       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 key)
                                                     throws java.security.InvalidKeyException
        Specified by:
        engineTranslateKey in class javax.crypto.SecretKeyFactorySpi
        Throws:
        java.security.InvalidKeyException