Package org.wildfly.security.key
Class RawSecretKeyFactory
- java.lang.Object
-
- javax.crypto.SecretKeyFactorySpi
-
- org.wildfly.security.key.RawSecretKeyFactory
-
public final class RawSecretKeyFactory extends SecretKeyFactorySpi
SecretKeyFactorySpi
that returns the givenKeySpec
orSecretKey
verbatim. Needed for the PKCS#12KeyStore
support in CredentialStore.
-
-
Constructor Summary
Constructors Constructor Description RawSecretKeyFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SecretKey
engineGenerateSecret(KeySpec keySpec)
protected KeySpec
engineGetKeySpec(SecretKey key, Class<?> keySpec)
protected SecretKey
engineTranslateKey(SecretKey key)
-
-
-
Method Detail
-
engineGenerateSecret
protected SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException
- Specified by:
engineGenerateSecret
in classSecretKeyFactorySpi
- Throws:
InvalidKeySpecException
-
engineGetKeySpec
protected KeySpec engineGetKeySpec(SecretKey key, Class<?> keySpec) throws InvalidKeySpecException
- Specified by:
engineGetKeySpec
in classSecretKeyFactorySpi
- Throws:
InvalidKeySpecException
-
engineTranslateKey
protected SecretKey engineTranslateKey(SecretKey key) throws InvalidKeyException
- Specified by:
engineTranslateKey
in classSecretKeyFactorySpi
- Throws:
InvalidKeyException
-
-