public final class MyECPrivateKey extends AbstractPrivateKey implements IMyPrivateKey
Modifier and Type | Field and Description |
---|---|
private java.math.BigInteger |
m_D |
private MyECParams |
m_params |
private static long |
serialVersionUID |
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION
Constructor and Description |
---|
MyECPrivateKey(mybouncycastle.org.bouncycastle.crypto.params.ECPrivateKeyParameters params,
mybouncycastle.org.bouncycastle.asn1.ASN1ObjectIdentifier curveId) |
MyECPrivateKey(org.w3c.dom.Element a_xmlElement) |
MyECPrivateKey(mybouncycastle.org.bouncycastle.asn1.pkcs.PrivateKeyInfo privKeyInfo)
Use ECPrivateKeyStructure defined in "SEC 1: Elliptic Curve Cryptography"
to be compatible with OpenSSL
|
Modifier and Type | Method and Description |
---|---|
IMyPublicKey |
createPublicKey()
Creates the corresponding public key to this private key.
|
java.lang.String |
getAlgorithm() |
mybouncycastle.org.bouncycastle.asn1.pkcs.PrivateKeyInfo |
getAsPrivateKeyInfo()
Use ECPrivateKeyStructure defined in "SEC 1: Elliptic Curve Cryptography" section
to be compatible with OpenSSL
|
java.lang.String |
getFormat() |
mybouncycastle.org.bouncycastle.crypto.params.ECPrivateKeyParameters |
getPrivateParams() |
ISignatureCreationAlgorithm |
getSignatureAlgorithm()
Gets a signature algorithm object for this key.
|
org.w3c.dom.Element |
toXmlElement(org.w3c.dom.Document a_doc)
Return an element that can be appended to the document.
|
getEncoded
private static final long serialVersionUID
private java.math.BigInteger m_D
private MyECParams m_params
public MyECPrivateKey(mybouncycastle.org.bouncycastle.crypto.params.ECPrivateKeyParameters params, mybouncycastle.org.bouncycastle.asn1.ASN1ObjectIdentifier curveId)
public MyECPrivateKey(mybouncycastle.org.bouncycastle.asn1.pkcs.PrivateKeyInfo privKeyInfo) throws java.security.InvalidKeyException
privKeyInfo
- java.security.InvalidKeyException
http://www.secg.org/
public MyECPrivateKey(org.w3c.dom.Element a_xmlElement) throws java.security.InvalidKeyException, XMLParseException
java.security.InvalidKeyException
XMLParseException
4050
public IMyPublicKey createPublicKey()
IMyPrivateKey
createPublicKey
in interface IMyPrivateKey
ECKeyPairGenerator
public mybouncycastle.org.bouncycastle.asn1.pkcs.PrivateKeyInfo getAsPrivateKeyInfo()
getAsPrivateKeyInfo
in interface IMyPrivateKey
http://www.secg.org/
public ISignatureCreationAlgorithm getSignatureAlgorithm()
getSignatureAlgorithm
in interface IMyPrivateKey
public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
public java.lang.String getFormat()
getFormat
in interface java.security.Key
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
IXMLEncodable
toXmlElement
in interface IXMLEncodable
a_doc
- a documentpublic mybouncycastle.org.bouncycastle.crypto.params.ECPrivateKeyParameters getPrivateParams()
Copyright © 2023. All rights reserved.