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
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
ECPrivateKeyStructure
public ECPrivateKeyStructure(ASN1Sequence seq)
ECPrivateKeyStructure
public ECPrivateKeyStructure(java.math.BigInteger key)
getKey
public java.math.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