Top Description Fields Constructors Methods
org.bouncycastle.asn1.sec

public Class ECPrivateKeyStructure

extends ASN1Object
Class Inheritance
Imports
java.math.BigInteger, java.util.Enumeration, org.bouncycastle.asn1.ASN1BitString, .ASN1Encodable, .ASN1EncodableVector, .ASN1Integer, .ASN1Object, .ASN1OctetString, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DEROctetString, .DERSequence, .DERTaggedObject, org.bouncycastle.util.BigIntegers

Deprecated

use ECPrivateKey

the elliptic curve private key object from SEC 1

Field Summary

Modifier and TypeField and Description
private ASN1Sequence

Constructor Summary

AccessConstructor and Description
public
public
public
public

Method Summary

Modifier and TypeMethod and Description
public BigInteger
private ASN1Primitive
getObjectInTag(int tagNo)

public ASN1Primitive
public ASN1BitString
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

ECPrivateKey ::= SEQUENCE { version INTEGER { ecPrivkeyVer1(1) } (ecPrivkeyVer1), privateKey OCTET STRING, parameters [0] Parameters OPTIONAL, publicKey [1] BIT STRING OPTIONAL }
Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

seqback to summary
private ASN1Sequence seq

Constructor Detail

ECPrivateKeyStructureback to summary
public ECPrivateKeyStructure(ASN1Sequence seq)
ECPrivateKeyStructureback to summary
public ECPrivateKeyStructure(BigInteger key)
ECPrivateKeyStructureback to summary
public ECPrivateKeyStructure(BigInteger key, ASN1Encodable parameters)
ECPrivateKeyStructureback to summary
public ECPrivateKeyStructure(BigInteger key, ASN1BitString publicKey, ASN1Encodable parameters)

Method Detail

getKeyback to summary
public BigInteger getKey()
getObjectInTagback to summary
private ASN1Primitive getObjectInTag(int tagNo)
getParametersback to summary
public ASN1Primitive getParameters()
getPublicKeyback to summary
public ASN1BitString getPublicKey()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

ECPrivateKey ::= SEQUENCE { version INTEGER { ecPrivkeyVer1(1) } (ecPrivkeyVer1), privateKey OCTET STRING, parameters [0] Parameters OPTIONAL, publicKey [1] BIT STRING OPTIONAL }

Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

a primitive representation of this object.