abstract class PBKDF2Core extends SecretKeyFactorySpi
| 限定符和类型 | 类和说明 |
|---|---|
static class |
PBKDF2Core.HmacSM3 |
| 构造器和说明 |
|---|
PBKDF2Core(String prfAlgo) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected SecretKey |
engineGenerateSecret(KeySpec keySpec)
Generates a
SecretKey object from the provided key
specification (key material). |
protected KeySpec |
engineGetKeySpec(SecretKey key,
Class<?> keySpecCl)
Returns a specification (key material) of the given key
in the requested format.
|
protected SecretKey |
engineTranslateKey(SecretKey key)
Translates a
SecretKey object, whose provider may be
unknown or potentially untrusted, into a corresponding
SecretKey object of this key factory. |
private final String prfAlgo
PBKDF2Core(String prfAlgo)
protected SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException
SecretKey object from the provided key
specification (key material).engineGenerateSecret 在类中 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.protected KeySpec engineGetKeySpec(SecretKey key, Class<?> keySpecCl) throws InvalidKeySpecException
engineGetKeySpec 在类中 SecretKeyFactorySpikey - the keykeySpec - the requested format in which the key material shall be
returnedInvalidKeySpecException - if the requested key
specification is inappropriate for the given key, or the
given key cannot be processed (e.g., the given key has an
unrecognized algorithm or format).protected SecretKey engineTranslateKey(SecretKey key) throws InvalidKeyException
SecretKey object, whose provider may be
unknown or potentially untrusted, into a corresponding
SecretKey object of this key factory.engineTranslateKey 在类中 SecretKeyFactorySpikey - the key whose provider is unknown or untrustedInvalidKeyException - if the given key cannot be processed by
this key factory.Copyright © 2022. All rights reserved.