Package org.bouncycastle.asn1.sec
Class ECPrivateKey
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.sec.ECPrivateKey
- All Implemented Interfaces:
ASN1Encodable
public class ECPrivateKey extends ASN1Object
the elliptic curve private key object from SEC 1
-
Constructor Summary
Constructors Constructor Description ECPrivateKey(BigInteger key)ECPrivateKey(BigInteger key, ASN1Object parameters)ECPrivateKey(BigInteger key, DERBitString publicKey, ASN1Object parameters) -
Method Summary
Modifier and Type Method Description static ECPrivateKeygetInstance(Object obj)BigIntegergetKey()ASN1PrimitivegetParameters()DERBitStringgetPublicKey()ASN1PrimitivetoASN1Primitive()ECPrivateKey ::= SEQUENCE { version INTEGER { ecPrivkeyVer1(1) } (ecPrivkeyVer1), privateKey OCTET STRING, parameters [0] Parameters OPTIONAL, publicKey [1] BIT STRING OPTIONAL }Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
-
Constructor Details
-
ECPrivateKey
-
ECPrivateKey
-
ECPrivateKey
-
-
Method Details
-
getInstance
-
getKey
-
getPublicKey
-
getParameters
-
toASN1Primitive
ECPrivateKey ::= SEQUENCE { version INTEGER { ecPrivkeyVer1(1) } (ecPrivkeyVer1), privateKey OCTET STRING, parameters [0] Parameters OPTIONAL, publicKey [1] BIT STRING OPTIONAL }- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object
-