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.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ElytronMessages
log
-
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)
-
-
-
Field Detail
-
log
ElytronMessages log
-
-
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
-
-