Class ECPrivateKeyStructure

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.sec.ECPrivateKeyStructure
All Implemented Interfaces:
ASN1Encodable, Encodable

public class ECPrivateKeyStructure extends ASN1Object
Deprecated.
use ECPrivateKey
the elliptic curve private key object from SEC 1
  • Constructor Details

    • ECPrivateKeyStructure

      public ECPrivateKeyStructure(ASN1Sequence seq)
      Deprecated.
    • ECPrivateKeyStructure

      public ECPrivateKeyStructure(BigInteger key)
      Deprecated.
    • ECPrivateKeyStructure

      public ECPrivateKeyStructure(BigInteger key, ASN1Encodable parameters)
      Deprecated.
    • ECPrivateKeyStructure

      public ECPrivateKeyStructure(BigInteger key, ASN1BitString publicKey, ASN1Encodable parameters)
      Deprecated.
  • Method Details

    • getKey

      public BigInteger getKey()
      Deprecated.
    • getPublicKey

      public ASN1BitString getPublicKey()
      Deprecated.
    • getParameters

      public ASN1Primitive getParameters()
      Deprecated.
    • toASN1Primitive

      public ASN1Primitive toASN1Primitive()
      Deprecated.
      ECPrivateKey ::= SEQUENCE { version INTEGER { ecPrivkeyVer1(1) } (ecPrivkeyVer1), privateKey OCTET STRING, parameters [0] Parameters OPTIONAL, publicKey [1] BIT STRING OPTIONAL }
      Specified by:
      toASN1Primitive in interface ASN1Encodable
      Specified by:
      toASN1Primitive in class ASN1Object
      Returns:
      a primitive representation of this object.