um.di.lmf.enote
Class Order

java.lang.Object
  extended byum.di.lmf.enote.Order
All Implemented Interfaces:
iaik.asn1.ASN1Type
Direct Known Subclasses:
ENote, OpenOrder

public class Order
extends java.lang.Object
implements iaik.asn1.ASN1Type

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

amount

protected int amount
The money value of the ENote


serial

protected java.math.BigInteger serial
The serial number


npairs

protected int npairs
The number of IDPairs


commit1

protected byte[][] commit1
The bit commitments


commit2

protected byte[][] commit2
The bit commitments


pub_random1

protected java.math.BigInteger[] pub_random1
The public random for the commitments


pub_random2

protected java.math.BigInteger[] pub_random2
The public random for the commitments


bank_cert

protected iaik.x509.X509Certificate bank_cert
The bank's certificate

Constructor Detail

Order

public Order()
This is the constructor that should be used before building an object with decode.

Method Detail

getAmount

public int getAmount()
Returns the note money value


getSerial

public java.math.BigInteger getSerial()
Returns the note serial number


getNPairs

public int getNPairs()
Returns the number of id pairs


getCommitment

public byte[] getCommitment(int i,
                            boolean bit)
Returns one of the commitments


getPubRandom

public java.math.BigInteger getPubRandom(int i,
                                         boolean bit)
Returns one of the commitment public randoms


getBankCertificate

public iaik.x509.X509Certificate getBankCertificate()
Returns the bank certificate


decode

public void decode(iaik.asn1.ASN1Object obj)
            throws iaik.asn1.CodingException
Decodes an ASN1Object according to the ASN.1 type the class implements.

Specified by:
decode in interface iaik.asn1.ASN1Type
Throws:
iaik.asn1.CodingException

toASN1Object

public iaik.asn1.ASN1Object toASN1Object()
                                  throws iaik.asn1.CodingException
Creates an ASN1Object according to the ASN.1 type the class implements.

Specified by:
toASN1Object in interface iaik.asn1.ASN1Type
Throws:
iaik.asn1.CodingException