um.di.lmf.enote
Class ENote

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

public class ENote
extends Order
implements iaik.asn1.ASN1Type

This class represents a digital cash note


Field Summary
protected  byte[] signature
          The bank's signature
 
Fields inherited from class um.di.lmf.enote.Order
amount, bank_cert, commit1, commit2, npairs, pub_random1, pub_random2, serial
 
Constructor Summary
ENote()
          This is the constructor that should be used before building an object with decode.
ENote(Order order, byte[] signature)
          This constructor builds an eNote from an order and a signature.
 
Method Summary
 void decode(iaik.asn1.ASN1Object obj)
          Decodes an ASN1Object according to the ASN.1 type the class implements.
 byte[] getSignature()
          Returns the note signature
 iaik.asn1.ASN1Object toASN1Object()
          Creates an ASN1Object according to the ASN.1 type the class implements.
 
Methods inherited from class um.di.lmf.enote.Order
getAmount, getBankCertificate, getCommitment, getNPairs, getPubRandom, getSerial
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

signature

protected byte[] signature
The bank's signature

Constructor Detail

ENote

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


ENote

public ENote(Order order,
             byte[] signature)
This constructor builds an eNote from an order and a signature.

Method Detail

getSignature

public byte[] getSignature()
Returns the note signature


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
Overrides:
decode in class Order
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
Overrides:
toASN1Object in class Order
Throws:
iaik.asn1.CodingException