org.gudy.bouncycastle.asn1.sec
Class ECPrivateKeyStructure
java.lang.Object
org.gudy.bouncycastle.asn1.ASN1Encodable
org.gudy.bouncycastle.asn1.sec.ECPrivateKeyStructure
- All Implemented Interfaces:
- DEREncodable
public class ECPrivateKeyStructure
- extends ASN1Encodable
the elliptic curve private key object from SEC 1
ECPrivateKeyStructure
public ECPrivateKeyStructure(ASN1Sequence seq)
ECPrivateKeyStructure
public ECPrivateKeyStructure(BigInteger key)
getKey
public BigInteger getKey()
getPublicKey
public DERBitString getPublicKey()
getParameters
public ASN1Object getParameters()
toASN1Object
public DERObject toASN1Object()
- ECPrivateKey ::= SEQUENCE {
version INTEGER { ecPrivkeyVer1(1) } (ecPrivkeyVer1),
privateKey OCTET STRING,
parameters [0] Parameters OPTIONAL,
publicKey [1] BIT STRING OPTIONAL }
- Specified by:
toASN1Object
in class ASN1Encodable