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.
|
getEncodedpublic MyECPublicKey(mybouncycastle.org.bouncycastle.crypto.params.ECPublicKeyParameters params)
public MyECPublicKey(mybouncycastle.org.bouncycastle.asn1.x509.SubjectPublicKeyInfo spki)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic boolean equals(java.lang.Object a_publicKey)
AbstractPublicKeyequals in interface IMyPublicKeyequals in class AbstractPublicKeya_publicKey - an other public keypublic int hashCode()
hashCode in interface IMyPublicKeyhashCode in class AbstractPublicKeyObject.hashCode()public mybouncycastle.org.bouncycastle.asn1.x509.SubjectPublicKeyInfo getAsSubjectPublicKeyInfo()
IMyPublicKeygetAsSubjectPublicKeyInfo in interface IMyPublicKeypublic int getKeyLength()
IMyPublicKeygetKeyLength in interface IMyPublicKeypublic ISignatureVerificationAlgorithm getSignatureAlgorithm()
getSignatureAlgorithm in interface IMyPublicKeypublic mybouncycastle.org.bouncycastle.crypto.params.ECPublicKeyParameters getPublicParams()
public java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic java.lang.String getFormat()
getFormat in interface java.security.Keypublic org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
IXMLEncodabletoXmlElement in interface IXMLEncodablea_doc - a document4050Copyright © 2023. All rights reserved.