org.gudy.bouncycastle.asn1.sec
Class ECPrivateKeyStructure

java.lang.Object
  extended by org.gudy.bouncycastle.asn1.ASN1Encodable
      extended by org.gudy.bouncycastle.asn1.sec.ECPrivateKeyStructure
All Implemented Interfaces:
DEREncodable

public class ECPrivateKeyStructure
extends ASN1Encodable

the elliptic curve private key object from SEC 1


Field Summary
 
Fields inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
BER, DER
 
Constructor Summary
ECPrivateKeyStructure(ASN1Sequence seq)
           
ECPrivateKeyStructure(BigInteger key)
           
 
Method Summary
 BigInteger getKey()
           
 ASN1Object getParameters()
           
 DERBitString getPublicKey()
           
 DERObject toASN1Object()
          ECPrivateKey ::= SEQUENCE { version INTEGER { ecPrivkeyVer1(1) } (ecPrivkeyVer1), privateKey OCTET STRING, parameters [0] Parameters OPTIONAL, publicKey [1] BIT STRING OPTIONAL }
 
Methods inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable
equals, getDEREncoded, getDERObject, getEncoded, getEncoded, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECPrivateKeyStructure

public ECPrivateKeyStructure(ASN1Sequence seq)

ECPrivateKeyStructure

public ECPrivateKeyStructure(BigInteger key)
Method Detail

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