public final class MyECPrivateKey extends AbstractPrivateKey implements IMyPrivateKey
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.
|
getEncodedpublic 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.InvalidKeyExceptionhttp://www.secg.org/public MyECPrivateKey(org.w3c.dom.Element a_xmlElement)
throws java.security.InvalidKeyException,
XMLParseException
java.security.InvalidKeyExceptionXMLParseException4050public IMyPublicKey createPublicKey()
IMyPrivateKeycreatePublicKey in interface IMyPrivateKeyECKeyPairGeneratorpublic mybouncycastle.org.bouncycastle.asn1.pkcs.PrivateKeyInfo getAsPrivateKeyInfo()
getAsPrivateKeyInfo in interface IMyPrivateKeyhttp://www.secg.org/public ISignatureCreationAlgorithm getSignatureAlgorithm()
getSignatureAlgorithm in interface IMyPrivateKeypublic java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic java.lang.String getFormat()
getFormat in interface java.security.Keypublic org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
IXMLEncodabletoXmlElement in interface IXMLEncodablea_doc - a documentpublic mybouncycastle.org.bouncycastle.crypto.params.ECPrivateKeyParameters getPrivateParams()
Copyright © 2023. All rights reserved.