anon.pay.xml
Class XMLChallenge

java.lang.Object
  extended by anon.pay.xml.XMLChallenge
All Implemented Interfaces:
IXMLEncodable

public class XMLChallenge
extends java.lang.Object
implements IXMLEncodable


Field Summary
private  byte[] m_arbChallenge
           
static java.lang.String XML_ELEMENT_NAME
           
 
Fields inherited from interface anon.util.IXMLEncodable
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_VERSION
 
Constructor Summary
XMLChallenge(byte[] data)
          Note: this does not parse XML, but sets the challenge byte-array directly...
XMLChallenge(org.w3c.dom.Document doc)
           
XMLChallenge(org.w3c.dom.Element element)
          XMLChallenge
XMLChallenge(java.lang.String xml)
           
 
Method Summary
 byte[] getChallengeForSigning()
           
private  void setValues(org.w3c.dom.Element elemRoot)
           
 org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
          Return an element that can be appended to the document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_arbChallenge

private byte[] m_arbChallenge

XML_ELEMENT_NAME

public static final java.lang.String XML_ELEMENT_NAME
See Also:
Constant Field Values
Constructor Detail

XMLChallenge

public XMLChallenge(java.lang.String xml)
             throws java.lang.Exception
Throws:
java.lang.Exception

XMLChallenge

public XMLChallenge(org.w3c.dom.Element element)
             throws java.lang.Exception
XMLChallenge

Parameters:
element - Element
Throws:
java.lang.Exception

XMLChallenge

public XMLChallenge(org.w3c.dom.Document doc)
             throws java.lang.Exception
Throws:
java.lang.Exception

XMLChallenge

public XMLChallenge(byte[] data)
Note: this does not parse XML, but sets the challenge byte-array directly...

Method Detail

setValues

private void setValues(org.w3c.dom.Element elemRoot)
                throws java.lang.Exception
Throws:
java.lang.Exception

getChallengeForSigning

public byte[] getChallengeForSigning()

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