anon.pay
Class BI
java.lang.Object
anon.pay.BI
- All Implemented Interfaces:
- IXMLEncodable
public class BI
- extends java.lang.Object
- implements IXMLEncodable
This class represents a known BI with its unique name and x509 public
certificate (verifyer).
It can be converted to an XML structure, the structure is as follows:
unique name
...
... the certificate (JAPCertificate)
- Version:
- 1.0
- Author:
- Bastian Voigt
Constructor Summary |
BI(byte[] barCert,
java.lang.String biName,
java.util.Vector a_listeners)
constructs a BI object from a binary X509 certificate
and some additional data |
BI(org.w3c.dom.Element elemRoot)
|
BI(PaymentInstanceDBEntry entry)
|
BI(java.lang.String a_biID,
java.lang.String a_biName,
java.util.Vector a_listeners,
JAPCertificate a_cert)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_biID
private java.lang.String m_biID
m_biName
private java.lang.String m_biName
m_listenerInterfaces
private java.util.Vector m_listenerInterfaces
m_cert
private JAPCertificate m_cert
XML_ELEMENT_NAME
public static final java.lang.String XML_ELEMENT_NAME
- See Also:
- Constant Field Values
BI
public BI(java.lang.String a_biID,
java.lang.String a_biName,
java.util.Vector a_listeners,
JAPCertificate a_cert)
throws java.lang.Exception
- Throws:
java.lang.Exception
BI
public BI(org.w3c.dom.Element elemRoot)
throws java.lang.Exception
- Throws:
java.lang.Exception
BI
public BI(byte[] barCert,
java.lang.String biName,
java.util.Vector a_listeners)
- constructs a BI object from a binary X509 certificate
and some additional data
BI
public BI(PaymentInstanceDBEntry entry)
throws java.lang.Exception
- Throws:
java.lang.Exception
setValues
private void setValues(org.w3c.dom.Element elemRoot)
throws java.lang.Exception
- Throws:
java.lang.Exception
getName
public java.lang.String getName()
- returns the BI's unique name (identifier)
toXmlElement
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
- toXmlElement
- Specified by:
toXmlElement
in interface IXMLEncodable
- Parameters:
a_doc
- Document
- Returns:
- Element
getCertificate
public JAPCertificate getCertificate()
- getCertificate
- Returns:
- IMyPublicKey
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getID
public java.lang.String getID()
getListenerInterfaces
public java.util.Enumeration getListenerInterfaces()