public final class OpenSSLECPrivateKey extends Object implements ECPrivateKey, OpenSSLKeyHolder
| Modifier and Type | Field and Description |
|---|---|
protected OpenSSLECGroupContext |
group |
protected OpenSSLKey |
key |
| Constructor and Description |
|---|
OpenSSLECPrivateKey(ECPrivateKeySpec ecKeySpec) |
OpenSSLECPrivateKey(OpenSSLECGroupContext group,
OpenSSLKey key) |
OpenSSLECPrivateKey(OpenSSLKey key) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getAlgorithm() |
byte[] |
getEncoded() |
String |
getFormat() |
static OpenSSLKey |
getInstance(ECPrivateKey ecPrivateKey) |
OpenSSLKey |
getOpenSSLKey() |
ECParameterSpec |
getParams() |
BigInteger |
getS() |
int |
hashCode() |
String |
toString() |
static OpenSSLKey |
wrapPlatformKey(ECPrivateKey ecPrivateKey) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitdestroy, isDestroyedprotected transient OpenSSLKey key
protected transient OpenSSLECGroupContext group
public OpenSSLECPrivateKey(OpenSSLECGroupContext group, OpenSSLKey key)
public OpenSSLECPrivateKey(OpenSSLKey key)
public OpenSSLECPrivateKey(ECPrivateKeySpec ecKeySpec) throws InvalidKeySpecException
InvalidKeySpecExceptionpublic static OpenSSLKey wrapPlatformKey(ECPrivateKey ecPrivateKey) throws InvalidKeyException
InvalidKeyExceptionpublic static OpenSSLKey getInstance(ECPrivateKey ecPrivateKey) throws InvalidKeyException
InvalidKeyExceptionpublic String getAlgorithm()
getAlgorithm in interface Keypublic byte[] getEncoded()
getEncoded in interface Keypublic ECParameterSpec getParams()
public BigInteger getS()
getS in interface ECPrivateKeypublic OpenSSLKey getOpenSSLKey()
getOpenSSLKey in interface OpenSSLKeyHolder