abstract class PBEKeyFactory extends SecretKeyFactorySpi
| 限定符和类型 | 类和说明 |
|---|---|
static class |
PBEKeyFactory.PBEWithHmacSM3AndSM4_128_CBC_PKCS5Padding |
static class |
PBEKeyFactory.PBEWithHmacSM3AndSM4_128_ECB_PKCS5Padding |
| 限定符和类型 | 字段和说明 |
|---|---|
private String |
type |
private static HashSet<String> |
validTypes |
| 限定符 | 构造器和说明 |
|---|---|
private |
PBEKeyFactory(String keytype)
Simple constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 PBEKeyFactory(String keytype)
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.