ca.mint.mintchip.contract

Interface IValueMessage

All Superinterfaces:
IMessage

public interface IValueMessage extends IMessage

This interface represents an instance of value in transit between a payer(source) and a payee(target). This Value Message can only be consumed (loaded) by the intended payee's MintChip

Methods
Modifier and Type Method and Description
int getAmount()
Gets the amount.
java.lang.String getAnnotation()
Gets the annotation.
int getChallenge()
Gets the challenge.
java.util.Calendar getCreatedTime()
Gets the created time.
CurrencyCode getCurrencyCode()
Gets the currency code.
java.lang.String getMintChipVersion()
Gets the mint chip version.
java.lang.String getPayeeId()
Gets the payee id.
byte[] getPayerCertificate()
Gets the payer certificate.
java.lang.String getPayerId()
Gets the payer id.
byte[] getValue()
This method is intended to be used internally by the implementation of the IMintChip interface.
Methods inherited from interface ca.mint.mintchip.contract.IMessage
toBase64String
Method Detail

getAmount

int getAmount()

Gets the amount.

Returns:
the amount or value of this Value Message

getCurrencyCode

CurrencyCode getCurrencyCode()

Gets the currency code.

Returns:
the currency of the amount(value) for this Value Message

getPayeeId

java.lang.String getPayeeId()

Gets the payee id.

Returns:
the MintChip Id of the intended recipient of this Value Message

getPayerId

java.lang.String getPayerId()

Gets the payer id.

Returns:
the MintChip Id of the issuer of this Value Message

getPayerCertificate

byte[] getPayerCertificate()

Gets the payer certificate.

Returns:
the public certificate of the issuer of this Value Message

getChallenge

int getChallenge()

Gets the challenge.

Returns:
the challenge, a random number generated by the requester of this Value Message

getMintChipVersion

java.lang.String getMintChipVersion()

Gets the mint chip version.

Returns:
the version of the MintChip that created this ValueMessage

getCreatedTime

java.util.Calendar getCreatedTime()

Gets the created time.

Returns:
the date and time (accurate to the minute) this Value Message was initially created at source

getAnnotation

java.lang.String getAnnotation()

Gets the annotation.

Returns:
a textual description associated with this Value Message.
This is an optional property.

getValue

byte[] getValue()

This method is intended to be used internally by the implementation of the IMintChip interface.

Returns:
a byte array of the value data