Package org.wildfly.security.key
Class RawSecretKeyFactory
java.lang.Object
javax.crypto.SecretKeyFactorySpi
org.wildfly.security.key.RawSecretKeyFactory
SecretKeyFactorySpi that returns the given KeySpec or SecretKey verbatim. Needed for the
PKCS#12 KeyStore support in CredentialStore.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SecretKeyengineGenerateSecret(KeySpec keySpec) protected KeySpecengineGetKeySpec(SecretKey key, Class<?> keySpec) protected SecretKey
-
Constructor Details
-
RawSecretKeyFactory
public RawSecretKeyFactory()
-
-
Method Details
-
engineGenerateSecret
- Specified by:
engineGenerateSecretin classSecretKeyFactorySpi- Throws:
InvalidKeySpecException
-
engineGetKeySpec
- Specified by:
engineGetKeySpecin classSecretKeyFactorySpi- Throws:
InvalidKeySpecException
-
engineTranslateKey
- Specified by:
engineTranslateKeyin classSecretKeyFactorySpi- Throws:
InvalidKeyException
-