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.
|
getEncoded
public MyDSAPublicKey(mybouncycastle.org.bouncycastle.crypto.params.DSAPublicKeyParameters params)
public MyDSAPublicKey(mybouncycastle.org.bouncycastle.asn1.x509.SubjectPublicKeyInfo info) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public ISignatureVerificationAlgorithm getSignatureAlgorithm()
getSignatureAlgorithm
in interface IMyPublicKey
public java.math.BigInteger getY()
getY
in interface java.security.interfaces.DSAPublicKey
public java.security.interfaces.DSAParams getParams()
getParams
in interface java.security.interfaces.DSAKey
public mybouncycastle.org.bouncycastle.crypto.params.DSAPublicKeyParameters getPublicParams()
public MyDSAParams getMyDASParams()
public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
public java.lang.String getFormat()
getFormat
in interface java.security.Key
public mybouncycastle.org.bouncycastle.asn1.x509.SubjectPublicKeyInfo getAsSubjectPublicKeyInfo()
IMyPublicKey
getAsSubjectPublicKeyInfo
in interface IMyPublicKey
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
IXMLEncodable
toXmlElement
in interface IXMLEncodable
a_doc
- a documentpublic boolean equals(java.lang.Object a_publicKey)
equals
in interface IMyPublicKey
equals
in class AbstractPublicKey
a_publicKey
- an other public keypublic int hashCode()
hashCode
in interface IMyPublicKey
hashCode
in class AbstractPublicKey
Object.hashCode()
public int getKeyLength()
getKeyLength
in interface IMyPublicKey
public int getParameterLength()
Copyright © 2023. All rights reserved.