|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectum.di.lmf.enote.Order
This class represents a digital cash note order, for the withdrawal protocol
Field Summary | |
protected int |
amount
The money value of the ENote |
protected iaik.x509.X509Certificate |
bank_cert
The bank's certificate |
protected byte[][] |
commit1
The bit commitments |
protected byte[][] |
commit2
The bit commitments |
protected int |
npairs
The number of IDPairs |
protected java.math.BigInteger[] |
pub_random1
The public random for the commitments |
protected java.math.BigInteger[] |
pub_random2
The public random for the commitments |
protected java.math.BigInteger |
serial
The serial number |
Constructor Summary | |
Order()
This is the constructor that should be used before building an object with decode. |
Method Summary | |
void |
decode(iaik.asn1.ASN1Object obj)
Decodes an ASN1Object according to the ASN.1 type the class implements. |
int |
getAmount()
Returns the note money value |
iaik.x509.X509Certificate |
getBankCertificate()
Returns the bank certificate |
byte[] |
getCommitment(int i,
boolean bit)
Returns one of the commitments |
int |
getNPairs()
Returns the number of id pairs |
java.math.BigInteger |
getPubRandom(int i,
boolean bit)
Returns one of the commitment public randoms |
java.math.BigInteger |
getSerial()
Returns the note serial number |
iaik.asn1.ASN1Object |
toASN1Object()
Creates an ASN1Object according to the ASN.1 type the class implements. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int amount
protected java.math.BigInteger serial
protected int npairs
protected byte[][] commit1
protected byte[][] commit2
protected java.math.BigInteger[] pub_random1
protected java.math.BigInteger[] pub_random2
protected iaik.x509.X509Certificate bank_cert
Constructor Detail |
public Order()
Method Detail |
public int getAmount()
public java.math.BigInteger getSerial()
public int getNPairs()
public byte[] getCommitment(int i, boolean bit)
public java.math.BigInteger getPubRandom(int i, boolean bit)
public iaik.x509.X509Certificate getBankCertificate()
public void decode(iaik.asn1.ASN1Object obj) throws iaik.asn1.CodingException
decode
in interface iaik.asn1.ASN1Type
iaik.asn1.CodingException
public iaik.asn1.ASN1Object toASN1Object() throws iaik.asn1.CodingException
toASN1Object
in interface iaik.asn1.ASN1Type
iaik.asn1.CodingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |