anon.pay.xml
Class XMLJapPublicKey
java.lang.Object
anon.pay.xml.XMLJapPublicKey
- All Implemented Interfaces:
- IXMLEncodable
public class XMLJapPublicKey
- extends java.lang.Object
- implements IXMLEncodable
This class handles RSA and DSA Public Keys represented in XML.
It is used mainly for formatting and parsing xml keys
The corresponding XML struct is as follows (for RSA):
Base64 encoded Modulus
Base 64 enocded Exponent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_publicKey
private IMyPublicKey m_publicKey
ms_elemName
private static java.lang.String ms_elemName
XMLJapPublicKey
public XMLJapPublicKey(IMyPublicKey key)
throws java.lang.Exception
- Throws:
java.lang.Exception
XMLJapPublicKey
public XMLJapPublicKey(byte[] data)
throws java.lang.Exception
- Throws:
java.lang.Exception
XMLJapPublicKey
public XMLJapPublicKey(java.lang.String data)
throws java.lang.Exception
- Throws:
java.lang.Exception
XMLJapPublicKey
public XMLJapPublicKey(org.w3c.dom.Element elemKey)
throws java.lang.Exception
- Throws:
java.lang.Exception
getXMLElementName
public static java.lang.String getXMLElementName()
getPublicKey
public IMyPublicKey getPublicKey()
setPubKey
private void setPubKey(org.w3c.dom.Element elemKey)
throws java.lang.Exception
- Parses an XML JapPublicKey structure. Can handle RSA and DSA keys.
- Parameters:
elemKey
- Element the "JapPublicKey" tag
- Throws:
java.lang.Exception
toXmlElement
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
- Description copied from interface:
IXMLEncodable
- Return an element that can be appended to the document. This
Method must not change the document in any way!
- Specified by:
toXmlElement
in interface IXMLEncodable
- Parameters:
a_doc
- a document
- Returns:
- the interface as xml element
equals
public boolean equals(XMLJapPublicKey k)