ASN1Encodable, Encodablepublic class ECPrivateKey extends ASN1Object
| Constructor | Description |
|---|---|
ECPrivateKey(int orderBitLength,
java.math.BigInteger key) |
Base constructor.
|
ECPrivateKey(int orderBitLength,
java.math.BigInteger key,
ASN1Encodable parameters) |
|
ECPrivateKey(int orderBitLength,
java.math.BigInteger key,
DERBitString publicKey,
ASN1Encodable parameters) |
|
ECPrivateKey(java.math.BigInteger key) |
Deprecated.
use constructor which takes orderBitLength to guarantee correct encoding.
|
ECPrivateKey(java.math.BigInteger key,
ASN1Encodable parameters) |
Deprecated.
use constructor which takes orderBitLength to guarantee correct encoding.
|
ECPrivateKey(java.math.BigInteger key,
DERBitString publicKey,
ASN1Encodable parameters) |
Deprecated.
use constructor which takes orderBitLength to guarantee correct encoding.
|
| Modifier and Type | Method | Description |
|---|---|---|
static ECPrivateKey |
getInstance(java.lang.Object obj) |
|
java.math.BigInteger |
getKey() |
|
ASN1Primitive |
getParameters() |
|
DERBitString |
getPublicKey() |
|
ASN1Primitive |
toASN1Primitive() |
ECPrivateKey ::= SEQUENCE {
version INTEGER { ecPrivkeyVer1(1) } (ecPrivkeyVer1),
privateKey OCTET STRING,
parameters [0] Parameters OPTIONAL,
publicKey [1] BIT STRING OPTIONAL }
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Objectpublic ECPrivateKey(java.math.BigInteger key)
public ECPrivateKey(int orderBitLength,
java.math.BigInteger key)
orderBitLength - the bitLength of the order of the curve.key - the private key value.public ECPrivateKey(java.math.BigInteger key,
ASN1Encodable parameters)
public ECPrivateKey(java.math.BigInteger key,
DERBitString publicKey,
ASN1Encodable parameters)
public ECPrivateKey(int orderBitLength,
java.math.BigInteger key,
ASN1Encodable parameters)
public ECPrivateKey(int orderBitLength,
java.math.BigInteger key,
DERBitString publicKey,
ASN1Encodable parameters)
public static ECPrivateKey getInstance(java.lang.Object obj)
public java.math.BigInteger getKey()
public DERBitString getPublicKey()
public ASN1Primitive getParameters()
public ASN1Primitive toASN1Primitive()
toASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Object