public class ECPrivateKey extends ASN1Object
Modifier and Type | Field and Description |
---|---|
private ASN1Sequence |
seq |
Modifier | Constructor and Description |
---|---|
private |
ECPrivateKey(ASN1Sequence seq) |
|
ECPrivateKey(BigInteger key)
Deprecated.
use constructor which takes orderBitLength to guarantee correct encoding.
|
|
ECPrivateKey(BigInteger key,
ASN1Encodable parameters)
Deprecated.
use constructor which takes orderBitLength to guarantee correct encoding.
|
|
ECPrivateKey(BigInteger key,
DERBitString publicKey,
ASN1Encodable parameters)
Deprecated.
use constructor which takes orderBitLength to guarantee correct encoding.
|
|
ECPrivateKey(int orderBitLength,
BigInteger key)
Base constructor.
|
|
ECPrivateKey(int orderBitLength,
BigInteger key,
ASN1Encodable parameters) |
|
ECPrivateKey(int orderBitLength,
BigInteger key,
DERBitString publicKey,
ASN1Encodable parameters) |
Modifier and Type | Method and Description |
---|---|
static ECPrivateKey |
getInstance(Object obj) |
BigInteger |
getKey() |
private ASN1Primitive |
getObjectInTag(int tagNo) |
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, toASN1Object
private ASN1Sequence seq
private ECPrivateKey(ASN1Sequence seq)
public ECPrivateKey(BigInteger key)
public ECPrivateKey(int orderBitLength, BigInteger key)
orderBitLength
- the bitLength of the order of the curve.key
- the private key value.public ECPrivateKey(BigInteger key, ASN1Encodable parameters)
public ECPrivateKey(BigInteger key, DERBitString publicKey, ASN1Encodable parameters)
public ECPrivateKey(int orderBitLength, BigInteger key, ASN1Encodable parameters)
public ECPrivateKey(int orderBitLength, BigInteger key, DERBitString publicKey, ASN1Encodable parameters)
public static ECPrivateKey getInstance(Object obj)
public BigInteger getKey()
public DERBitString getPublicKey()
public ASN1Primitive getParameters()
private ASN1Primitive getObjectInTag(int tagNo)
public ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object