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
|
getEncoded
public static final java.lang.String XML_ELEMENT_NAME
public MyDSAPrivateKey(mybouncycastle.org.bouncycastle.asn1.pkcs.PrivateKeyInfo privKeyInfo) throws java.security.InvalidKeyException
java.security.InvalidKeyException
public MyDSAPrivateKey(org.w3c.dom.Element a_xmlElement) throws java.security.InvalidKeyException, XMLParseException
java.security.InvalidKeyException
XMLParseException
public MyDSAPrivateKey(mybouncycastle.org.bouncycastle.crypto.params.DSAPrivateKeyParameters keyParams)
public IMyPublicKey createPublicKey()
createPublicKey
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 java.math.BigInteger getX()
getX
in interface java.security.interfaces.DSAPrivateKey
public mybouncycastle.org.bouncycastle.asn1.pkcs.PrivateKeyInfo getAsPrivateKeyInfo()
IMyPrivateKey
getAsPrivateKeyInfo
in interface IMyPrivateKey
public ISignatureCreationAlgorithm getSignatureAlgorithm()
getSignatureAlgorithm
in interface IMyPrivateKey
public java.security.interfaces.DSAParams getParams()
getParams
in interface java.security.interfaces.DSAKey
public 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 IXMLEncodable
a_doc
- an XML documentCopyright © 2023. All rights reserved.