public final class MyECPublicKey extends AbstractPublicKey implements IMyPublicKey
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION
Constructor and Description |
---|
MyECPublicKey(mybouncycastle.org.bouncycastle.crypto.params.ECPublicKeyParameters params) |
MyECPublicKey(mybouncycastle.org.bouncycastle.asn1.x509.SubjectPublicKeyInfo spki) |
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()
Returns the length of the key.
|
mybouncycastle.org.bouncycastle.crypto.params.ECPublicKeyParameters |
getPublicParams() |
ISignatureVerificationAlgorithm |
getSignatureAlgorithm()
Gets a signature algorithm object for this key.
|
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 MyECPublicKey(mybouncycastle.org.bouncycastle.crypto.params.ECPublicKeyParameters params)
public MyECPublicKey(mybouncycastle.org.bouncycastle.asn1.x509.SubjectPublicKeyInfo spki) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public boolean equals(java.lang.Object a_publicKey)
AbstractPublicKey
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 mybouncycastle.org.bouncycastle.asn1.x509.SubjectPublicKeyInfo getAsSubjectPublicKeyInfo()
IMyPublicKey
getAsSubjectPublicKeyInfo
in interface IMyPublicKey
public int getKeyLength()
IMyPublicKey
getKeyLength
in interface IMyPublicKey
public ISignatureVerificationAlgorithm getSignatureAlgorithm()
getSignatureAlgorithm
in interface IMyPublicKey
public mybouncycastle.org.bouncycastle.crypto.params.ECPublicKeyParameters getPublicParams()
public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
public java.lang.String getFormat()
getFormat
in interface java.security.Key
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
IXMLEncodable
toXmlElement
in interface IXMLEncodable
a_doc
- a document4050
Copyright © 2023. All rights reserved.