public final class ECKeyFactory extends KeyFactorySpi
sun.security.ec.ECKeyFactory| 限定符和类型 | 字段和说明 |
|---|---|
private static KeyFactory |
instance |
| 构造器和说明 |
|---|
ECKeyFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
private static void |
checkKey(ECKey key)
Check that the given EC key is valid.
|
protected PrivateKey |
engineGeneratePrivate(KeySpec keySpec) |
protected PublicKey |
engineGeneratePublic(KeySpec keySpec) |
protected <T extends KeySpec> |
engineGetKeySpec(Key key,
Class<T> keySpec) |
protected Key |
engineTranslateKey(Key key)
Translate an SM2 key into a Sun SM2 key.
|
private static KeyFactory |
getInstance() |
private PrivateKey |
implGeneratePrivate(KeySpec keySpec) |
private PublicKey |
implGeneratePublic(KeySpec keySpec) |
private PrivateKey |
implTranslatePrivateKey(PrivateKey key) |
private PublicKey |
implTranslatePublicKey(PublicKey key) |
static ECKey |
toECKey(Key key)
Static method to convert Key into a useable instance of
ECPublicKey or ECPrivateKey.
|
private static KeyFactory instance
private static KeyFactory getInstance()
public static ECKey toECKey(Key key) throws InvalidKeyException
private static void checkKey(ECKey key) throws InvalidKeyException
protected Key engineTranslateKey(Key key) throws InvalidKeyException
engineTranslateKey 在类中 KeyFactorySpiInvalidKeyExceptionprotected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException
engineGeneratePublic 在类中 KeyFactorySpiInvalidKeySpecExceptionprotected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException
engineGeneratePrivate 在类中 KeyFactorySpiInvalidKeySpecExceptionprivate PublicKey implTranslatePublicKey(PublicKey key) throws InvalidKeyException
private PrivateKey implTranslatePrivateKey(PrivateKey key) throws InvalidKeyException
private PublicKey implGeneratePublic(KeySpec keySpec) throws GeneralSecurityException
private PrivateKey implGeneratePrivate(KeySpec keySpec) throws GeneralSecurityException
protected <T extends KeySpec> T engineGetKeySpec(Key key, Class<T> keySpec) throws InvalidKeySpecException
engineGetKeySpec 在类中 KeyFactorySpiInvalidKeySpecExceptionCopyright © 2024. All rights reserved.