public class ECKey
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private AsymmetricCipherKeyPair |
ECKeyPair |
private ECKeyPairGenerator |
ECKeyPairGen |
private KeyGenerationParameters |
keyGenParam |
Constructor and Description |
---|
ECKey(ECDomainParameters param)
ECKey object constructor
|
Modifier and Type | Method and Description |
---|---|
ECDomainParameters |
getDomainParameters()
Wrapper for ECKeyGenerationParameters getDomainParameters
|
CipherParameters |
getPrivate()
Wrapper for AsymmetricCipherKeyPair getPrivate()
|
CipherParameters |
getPublic()
Wrapper for AsymmetricCipherKeyPair getPublic()
|
void |
init()
Wrapper for AsymmetricCipherKeyPairGenerator init() and generateKeyPair()
function which initializes the elliptic curve and generates a keypair
|
private ECKeyPairGenerator ECKeyPairGen
private KeyGenerationParameters keyGenParam
private AsymmetricCipherKeyPair ECKeyPair
public ECKey(ECDomainParameters param)
param
- ECDomainParameters for creating the elliptic curve keypairpublic void init()
public CipherParameters getPrivate()
public CipherParameters getPublic()
public ECDomainParameters getDomainParameters()