public final class MyDSAPrivateKey extends AbstractPrivateKey implements java.security.interfaces.DSAPrivateKey, IMyPrivateKey
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
XML_ELEMENT_NAME |
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION| Constructor and Description |
|---|
MyDSAPrivateKey(mybouncycastle.org.bouncycastle.crypto.params.DSAPrivateKeyParameters keyParams) |
MyDSAPrivateKey(org.w3c.dom.Element a_xmlElement) |
MyDSAPrivateKey(mybouncycastle.org.bouncycastle.asn1.pkcs.PrivateKeyInfo privKeyInfo) |
| 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()
Gets the private key as a PrivateKeyInfo object.
|
java.lang.String |
getFormat() |
MyDSAParams |
getMyDSAParams() |
java.security.interfaces.DSAParams |
getParams() |
mybouncycastle.org.bouncycastle.crypto.params.DSAPrivateKeyParameters |
getPrivateParams() |
ISignatureCreationAlgorithm |
getSignatureAlgorithm()
Gets a signature algorithm object for this key.
|
java.math.BigInteger |
getX() |
org.w3c.dom.Element |
toXmlElement(org.w3c.dom.Document a_doc)
getXmlEncoded
|
getEncodedpublic static final java.lang.String XML_ELEMENT_NAME
public MyDSAPrivateKey(mybouncycastle.org.bouncycastle.asn1.pkcs.PrivateKeyInfo privKeyInfo)
throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionpublic MyDSAPrivateKey(org.w3c.dom.Element a_xmlElement)
throws java.security.InvalidKeyException,
XMLParseException
java.security.InvalidKeyExceptionXMLParseExceptionpublic MyDSAPrivateKey(mybouncycastle.org.bouncycastle.crypto.params.DSAPrivateKeyParameters keyParams)
public IMyPublicKey createPublicKey()
createPublicKey in interface IMyPrivateKeypublic java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic java.lang.String getFormat()
getFormat in interface java.security.Keypublic java.math.BigInteger getX()
getX in interface java.security.interfaces.DSAPrivateKeypublic mybouncycastle.org.bouncycastle.asn1.pkcs.PrivateKeyInfo getAsPrivateKeyInfo()
IMyPrivateKeygetAsPrivateKeyInfo in interface IMyPrivateKeypublic ISignatureCreationAlgorithm getSignatureAlgorithm()
getSignatureAlgorithm in interface IMyPrivateKeypublic java.security.interfaces.DSAParams getParams()
getParams in interface java.security.interfaces.DSAKeypublic MyDSAParams getMyDSAParams()
public mybouncycastle.org.bouncycastle.crypto.params.DSAPrivateKeyParameters getPrivateParams()
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
toXmlElement in interface IXMLEncodablea_doc - an XML documentCopyright © 2023. All rights reserved.