|
Bouncy Castle Cryptography Library 1.79 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.asn1.ASN1Object | +--org.bouncycastle.asn1.sec.ECPrivateKey
the elliptic curve private key object from SEC 1
Constructor Summary | |
ECPrivateKey(java.math.BigInteger key)
Deprecated. use constructor which takes orderBitLength to guarantee correct encoding. |
|
ECPrivateKey(java.math.BigInteger key,
ASN1BitString publicKey,
ASN1Encodable parameters)
Deprecated. use constructor which takes orderBitLength to guarantee correct encoding. |
|
ECPrivateKey(java.math.BigInteger key,
ASN1Encodable parameters)
Deprecated. use constructor which takes orderBitLength to guarantee correct encoding. |
|
ECPrivateKey(int orderBitLength,
java.math.BigInteger key)
Base constructor. |
|
ECPrivateKey(int orderBitLength,
java.math.BigInteger key,
ASN1BitString publicKey,
ASN1Encodable parameters)
|
|
ECPrivateKey(int orderBitLength,
java.math.BigInteger key,
ASN1Encodable parameters)
|
Method Summary | |
static ECPrivateKey |
getInstance(java.lang.Object obj)
|
java.math.BigInteger |
getKey()
|
ASN1Primitive |
getParameters()
Deprecated. Use getParametersObject() instead and getInstance
methods or similar to get the object at the desired type. |
ASN1Object |
getParametersObject()
|
ASN1BitString |
getPublicKey()
|
ASN1Primitive |
toASN1Primitive()
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 |
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ECPrivateKey(java.math.BigInteger key)
public ECPrivateKey(int orderBitLength, java.math.BigInteger key)
orderBitLength
- the bitLength of the order of the curve.key
- the private key value.public ECPrivateKey(java.math.BigInteger key, ASN1Encodable parameters)
public ECPrivateKey(java.math.BigInteger key, ASN1BitString publicKey, ASN1Encodable parameters)
public ECPrivateKey(int orderBitLength, java.math.BigInteger key, ASN1Encodable parameters)
public ECPrivateKey(int orderBitLength, java.math.BigInteger key, ASN1BitString publicKey, ASN1Encodable parameters)
Method Detail |
public static ECPrivateKey getInstance(java.lang.Object obj)
public java.math.BigInteger getKey()
public ASN1BitString getPublicKey()
public ASN1Primitive getParameters()
getParametersObject()
instead and getInstance
methods or similar to get the object at the desired type.
public ASN1Object getParametersObject()
public ASN1Primitive toASN1Primitive()
toASN1Primitive
in class ASN1Object
org.bouncycastle.asn1.ASN1Object
|
Bouncy Castle Cryptography Library 1.79 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |