public final class MyRSAPublicKey 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 |
|---|
MyRSAPublicKey(java.math.BigInteger modulus,
java.math.BigInteger exponent) |
MyRSAPublicKey(mybouncycastle.org.bouncycastle.crypto.CipherParameters cipherparams) |
MyRSAPublicKey(mybouncycastle.org.bouncycastle.asn1.x509.RSAPublicKeyStructure en) |
MyRSAPublicKey(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() |
static MyRSAPublicKey |
getInstance(byte[] encoded) |
int |
getKeyLength()
Returns the length of the key.
|
java.math.BigInteger |
getModulus() |
mybouncycastle.org.bouncycastle.crypto.CipherParameters |
getParams() |
java.math.BigInteger |
getPublicExponent() |
ISignatureVerificationAlgorithm |
getSignatureAlgorithm()
Gets the signature algorithm object that is held and initialised by this key.
|
int |
hashCode() |
java.lang.String |
toString() |
org.w3c.dom.Element |
toXmlElement(org.w3c.dom.Document a_doc)
Builds an XML Node containing the public key data.
|
getEncodedpublic MyRSAPublicKey(java.math.BigInteger modulus,
java.math.BigInteger exponent)
public MyRSAPublicKey(mybouncycastle.org.bouncycastle.crypto.CipherParameters cipherparams)
throws java.lang.Exception
java.lang.Exceptionpublic MyRSAPublicKey(mybouncycastle.org.bouncycastle.asn1.x509.RSAPublicKeyStructure en)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic MyRSAPublicKey(mybouncycastle.org.bouncycastle.asn1.x509.SubjectPublicKeyInfo info)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic static MyRSAPublicKey getInstance(byte[] encoded)
public ISignatureVerificationAlgorithm getSignatureAlgorithm()
getSignatureAlgorithm in interface IMyPublicKeypublic java.math.BigInteger getModulus()
public java.math.BigInteger getPublicExponent()
public java.lang.String getAlgorithm()
getAlgorithm in interface java.security.Keypublic java.lang.String getFormat()
getFormat in interface java.security.Keypublic int getKeyLength()
IMyPublicKeygetKeyLength in interface IMyPublicKeypublic mybouncycastle.org.bouncycastle.asn1.x509.SubjectPublicKeyInfo getAsSubjectPublicKeyInfo()
IMyPublicKeygetAsSubjectPublicKeyInfo in interface IMyPublicKeypublic mybouncycastle.org.bouncycastle.crypto.CipherParameters getParams()
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
toXmlElement in interface IXMLEncodablea_doc - the root 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 java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2023. All rights reserved.