public final class ECKeyFactory
extends java.security.KeyFactorySpi
| Constructor and Description |
|---|
ECKeyFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected java.security.PrivateKey |
engineGeneratePrivate(java.security.spec.KeySpec keySpec) |
protected java.security.PublicKey |
engineGeneratePublic(java.security.spec.KeySpec keySpec) |
protected <T extends java.security.spec.KeySpec> |
engineGetKeySpec(java.security.Key key,
java.lang.Class<T> keySpec) |
protected java.security.Key |
engineTranslateKey(java.security.Key key)
Translate an EC key into a Sun EC key.
|
static java.security.interfaces.ECKey |
toECKey(java.security.Key key)
Static method to convert Key into a usable instance of
ECPublicKey or ECPrivateKey.
|
public static java.security.interfaces.ECKey toECKey(java.security.Key key)
throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionprotected java.security.Key engineTranslateKey(java.security.Key key)
throws java.security.InvalidKeyException
engineTranslateKey in class java.security.KeyFactorySpijava.security.InvalidKeyExceptionprotected java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
engineGeneratePublic in class java.security.KeyFactorySpijava.security.spec.InvalidKeySpecExceptionprotected java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
engineGeneratePrivate in class java.security.KeyFactorySpijava.security.spec.InvalidKeySpecExceptionprotected <T extends java.security.spec.KeySpec> T engineGetKeySpec(java.security.Key key,
java.lang.Class<T> keySpec)
throws java.security.spec.InvalidKeySpecException
engineGetKeySpec in class java.security.KeyFactorySpijava.security.spec.InvalidKeySpecException