public final class RawSecretKeyFactory extends SecretKeyFactorySpi
SecretKeyFactorySpi
that returns the given KeySpec
or SecretKey
verbatim. Needed for the
PKCS#12 KeyStore
support in CredentialStore
.Constructor and Description |
---|
RawSecretKeyFactory() |
Modifier and Type | Method and Description |
---|---|
protected SecretKey |
engineGenerateSecret(KeySpec keySpec) |
protected KeySpec |
engineGetKeySpec(SecretKey key,
Class<?> keySpec) |
protected SecretKey |
engineTranslateKey(SecretKey key) |
protected SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException
engineGenerateSecret
in class SecretKeyFactorySpi
InvalidKeySpecException
protected KeySpec engineGetKeySpec(SecretKey key, Class<?> keySpec) throws InvalidKeySpecException
engineGetKeySpec
in class SecretKeyFactorySpi
InvalidKeySpecException
protected SecretKey engineTranslateKey(SecretKey key) throws InvalidKeyException
engineTranslateKey
in class SecretKeyFactorySpi
InvalidKeyException
Copyright © 2017 JBoss by Red Hat. All rights reserved.