public final class MyDSAPublicKey extends AbstractPublicKey implements java.security.interfaces.DSAPublicKey, IMyPublicKey
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION| Constructor and Description |
|---|
MyDSAPublicKey(mybouncycastle.org.bouncycastle.crypto.params.DSAPublicKeyParameters params) |
MyDSAPublicKey(mybouncycastle.org.bouncycastle.asn1.x509.SubjectPublicKeyInfo info) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object a_publicKey)
This method returns if two public keys have the same public key parameters.
|
java.lang.String |
getAlgorithm() |
mybouncycastle.org.bouncycastle.asn1.x509.SubjectPublicKeyInfo |
getAsSubjectPublicKeyInfo()
Gets the key as a SubjectPublicKeyInfo object.
|
java.lang.String |
getFormat() |
int |
getKeyLength()
Tested this implementation with Key-lengths from 256 to 1024 Bit in 64 Bit steps.
|
MyDSAParams |
getMyDASParams() |
int |
getParameterLength() |
java.security.interfaces.DSAParams |
getParams() |
mybouncycastle.org.bouncycastle.crypto.params.DSAPublicKeyParameters |
getPublicParams() |
ISignatureVerificationAlgorithm |
getSignatureAlgorithm()
Gets a signature algorithm object for this key.
|
java.math.BigInteger |
getY() |
int |
hashCode() |
org.w3c.dom.Element |
toXmlElement(org.w3c.dom.Document a_doc)
Return an element that can be appended to the document.
|
getEncodedpublic MyDSAPublicKey(mybouncycastle.org.bouncycastle.crypto.params.DSAPublicKeyParameters params)
public MyDSAPublicKey(mybouncycastle.org.bouncycastle.asn1.x509.SubjectPublicKeyInfo info)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic ISignatureVerificationAlgorithm getSignatureAlgorithm()
getSignatureAlgorithm in interface IMyPublicKeypublic java.math.BigInteger getY()
getY in interface java.security.interfaces.DSAPublicKeypublic java.security.interfaces.DSAParams getParams()
getParams in interface java.security.interfaces.DSAKeypublic mybouncycastle.org.bouncycastle.crypto.params.DSAPublicKeyParameters getPublicParams()
public MyDSAParams getMyDASParams()
public java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic java.lang.String getFormat()
getFormat in interface java.security.Keypublic mybouncycastle.org.bouncycastle.asn1.x509.SubjectPublicKeyInfo getAsSubjectPublicKeyInfo()
IMyPublicKeygetAsSubjectPublicKeyInfo in interface IMyPublicKeypublic org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
IXMLEncodabletoXmlElement in interface IXMLEncodablea_doc - a documentpublic boolean equals(java.lang.Object a_publicKey)
equals in interface IMyPublicKeyequals in class AbstractPublicKeya_publicKey - an other public keypublic int hashCode()
hashCode in interface IMyPublicKeyhashCode in class AbstractPublicKeyObject.hashCode()public int getKeyLength()
getKeyLength in interface IMyPublicKeypublic int getParameterLength()
Copyright © 2023. All rights reserved.