public class PBEKeyFactory extends SecretKeyFactorySpi
| Constructor and Description |
|---|
PBEKeyFactory(String keytype)
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected SecretKey |
engineGenerateSecret(KeySpec keySpec)
Generates a
SecretKey object from the provided key specification (key material). |
static boolean |
isAlgorithmSupported(String algorithm)
Checks if the algorithm is supported by the key factory.
|
public PBEKeyFactory(String keytype)
keytype - one of the supported key types.protected SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException
SecretKey object from the provided key specification (key material).engineGenerateSecret in class SecretKeyFactorySpikeySpec - the specification (key material) of the secret keyInvalidKeySpecException - if the given key specification is inappropriate for this key factory to produce a public key.public static boolean isAlgorithmSupported(String algorithm)
algorithm - string that describes the algorithm.