|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.pay.xml.XMLEasyCC
public class XMLEasyCC
XML structure for a easy cost confirmation (without mircopayment function) which is sent to the AI by the Jap
Field Summary | |
---|---|
private boolean |
m_bOldHashFormat
|
private java.lang.String |
m_cascadeID
|
private org.w3c.dom.Document |
m_docTheEasyCC
|
private int |
m_id
|
private long |
m_lAccountNumber
|
private long |
m_lTransferredBytes
|
private java.lang.String |
m_priceCertHashesConcatenated
|
private java.util.Hashtable |
m_priceCerts
|
private java.lang.String |
m_strPIID
The Payment Instance ID |
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_LANGUAGE, XML_ATTR_VERSION |
Constructor Summary | |
---|---|
XMLEasyCC(byte[] data)
XMLEasyCC construct a CC including a Vector of price certificates (one per mix of the cascade) id is added when the CC is stored in the BI's database, so it's not passed as an argument here |
|
XMLEasyCC(char[] data)
|
|
XMLEasyCC(org.w3c.dom.Element xml)
|
|
XMLEasyCC(java.lang.String xml)
|
|
XMLEasyCC(XMLEasyCC a_copiedCc)
|
Method Summary | |
---|---|
void |
addTransferredBytes(long plusBytes)
this makes the signature invalid! |
private static java.lang.String |
createConcatenatedPriceCertHashes(java.util.Hashtable priceCerts,
boolean newFormat)
|
long |
getAccountNumber()
|
java.lang.String |
getCascadeID()
Deprecated. : use getConcatenatedPriceCertHashes() instead |
java.lang.String |
getConcatenatedPriceCertHashes()
|
int |
getId()
getId Warning: field is not set as long as the CC has not been inserted in the payment instance's database you only need it as db primary key, so there should be no need to call getId before the CC has been stored in the database |
java.util.Enumeration |
getMixIds()
|
int |
getNrOfPriceCerts()
|
java.lang.String |
getPIID()
|
java.util.Hashtable |
getPriceCertHashes()
getPriceCertElements |
long |
getTransferredBytes()
|
static java.lang.String |
getXMLElementName()
|
boolean |
hasOldHashFormat()
|
private org.w3c.dom.Element |
internal_toXmlElement(org.w3c.dom.Document a_doc)
|
void |
setCascadeID(java.lang.String a_id)
|
void |
setId(int a_id)
|
void |
setPIID(java.lang.String a_piID)
sets the PI ID. |
void |
setPriceCerts(java.util.Hashtable a_priceCertHashes)
setPriceCerts: inserts the hash values of known PriceCertificates |
void |
setTransferredBytes(long numBytes)
setTransferredBytes. |
private void |
setValues(org.w3c.dom.Element element)
|
boolean |
sign(IMyPrivateKey key)
|
org.w3c.dom.Element |
toXmlElement(org.w3c.dom.Document a_doc)
Return an element that can be appended to the document. |
boolean |
verify(IMyPublicKey key)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String XML_ELEMENT_NAME
private long m_lTransferredBytes
private long m_lAccountNumber
private int m_id
private java.util.Hashtable m_priceCerts
private java.lang.String m_cascadeID
private org.w3c.dom.Document m_docTheEasyCC
private java.lang.String m_priceCertHashesConcatenated
private boolean m_bOldHashFormat
private java.lang.String m_strPIID
Constructor Detail |
---|
public XMLEasyCC(byte[] data) throws java.lang.Exception
accountNumber
- longtransferred
- longa_certificate
- PKCS12a_priceCerts
- Vector
java.lang.Exception
public XMLEasyCC(java.lang.String xml) throws XMLParseException
XMLParseException
public XMLEasyCC(char[] data) throws XMLParseException
XMLParseException
public XMLEasyCC(org.w3c.dom.Element xml) throws java.lang.Exception
java.lang.Exception
public XMLEasyCC(XMLEasyCC a_copiedCc) throws XMLParseException
XMLParseException
Method Detail |
---|
public static java.lang.String getXMLElementName()
public boolean hasOldHashFormat()
private void setValues(org.w3c.dom.Element element) throws XMLParseException
XMLParseException
private org.w3c.dom.Element internal_toXmlElement(org.w3c.dom.Document a_doc)
public java.lang.String getPIID()
public void setPIID(java.lang.String a_piID)
Id
- of the payment instancepublic int getId()
public void setId(int a_id)
public void setCascadeID(java.lang.String a_id)
public long getAccountNumber()
public long getTransferredBytes()
public java.util.Enumeration getMixIds()
public java.lang.String getCascadeID()
public java.util.Hashtable getPriceCertHashes()
public java.lang.String getConcatenatedPriceCertHashes()
private static java.lang.String createConcatenatedPriceCertHashes(java.util.Hashtable priceCerts, boolean newFormat)
public int getNrOfPriceCerts()
public void setPriceCerts(java.util.Hashtable a_priceCertHashes)
a_priceCertHashes
- Vectorpublic void addTransferredBytes(long plusBytes)
public void setTransferredBytes(long numBytes)
numBytes
- longpublic boolean sign(IMyPrivateKey key)
public boolean verify(IMyPublicKey key)
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
IXMLEncodable
toXmlElement
in interface IXMLEncodable
a_doc
- a document
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |