public abstract class AbstractPublicKey extends java.lang.Object implements IMyPublicKey
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION
Constructor and Description |
---|
AbstractPublicKey(mybouncycastle.org.bouncycastle.asn1.x509.SubjectPublicKeyInfo a_keyInfo)
Creates a public key from a PrivateKeyInfo.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
equals(java.lang.Object a_publicKey)
This method returns if two public keys have the same public key parameters.
|
byte[] |
getEncoded()
Returns the key in a byte encoded form that is defined to be the result of the method
getAsSubjectPublicKeyInfo() . |
abstract int |
hashCode() |
getClass, notify, notifyAll, toString, wait, wait, wait
getAsSubjectPublicKeyInfo, getKeyLength, getSignatureAlgorithm
toXmlElement
public AbstractPublicKey(mybouncycastle.org.bouncycastle.asn1.x509.SubjectPublicKeyInfo a_keyInfo)
a_keyInfo
- a SubjectPublicKeyInfopublic final byte[] getEncoded()
getAsSubjectPublicKeyInfo()
.getEncoded
in interface java.security.Key
IMyPublicKey.getAsSubjectPublicKeyInfo()
public abstract int hashCode()
hashCode
in interface IMyPublicKey
hashCode
in class java.lang.Object
Object.hashCode()
public abstract boolean equals(java.lang.Object a_publicKey)
equals
in interface IMyPublicKey
equals
in class java.lang.Object
a_publicKey
- an other public keyCopyright © 2023. All rights reserved.