Android Open Source - bankomatinfos Emv Transaction Log Entry






From Project

Back to project page bankomatinfos.

License

The source code is released under:

GNU General Public License

If you think the Android project bankomatinfos listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package at.zweng.bankomatinfos.model;
//from w  w  w  . jav a  2s  .  com
import static at.zweng.bankomatinfos.util.Utils.*;

/**
 * Represents a single entry in the cards transaction log
 * 
 * @author Johannes Zweng <johannes@zweng.at>
 */
public class EmvTransactionLogEntry extends AbstractTransactionLogEntry {

  private Byte _cryptogramInformation;
  private byte[] _applicationDefaultAction;
  private byte[] _customerExclusiveData;
  // TAG "DF 3E"
  private Byte _unknownByte;

  /**
   * @return the _cryptogramInformation
   */
  public Byte getCryptogramInformationData() {
    return _cryptogramInformation;
  }

  /**
   * @param cryptogramInformationData
   *            the _cryptogramInformation to set
   */
  public void setCryptogramInformationData(byte cryptogramInformationData) {
    this._cryptogramInformation = cryptogramInformationData;
  }

  /**
   * @return the _customerExclusiveData
   */
  public byte[] getCustomerExclusiveData() {
    return _customerExclusiveData;
  }

  /**
   * @param customerExclusiveData
   *            the customerExclusiveData to set
   */
  public void setCustomerExclusiveData(byte[] customerExclusiveData) {
    this._customerExclusiveData = customerExclusiveData;
  }

  /**
   * @return the _applicationDefaultAction
   */
  public byte[] getApplicationDefaultAction() {
    return _applicationDefaultAction;
  }

  /**
   * @param applicationDefaultAction
   *            the _applicationDefaultAction to set
   */
  public void setApplicationDefaultAction(byte[] applicationDefaultAction) {
    this._applicationDefaultAction = applicationDefaultAction;
  }

  /**
   * @return the _unknownByte
   */
  public Byte getUnknownByte() {
    return _unknownByte;
  }

  /**
   * @param unknownByte
   *            the unknownByte to set
   */
  public void setUnknownByte(byte unknownByte) {
    this._unknownByte = unknownByte;
  }

  /*
   * (non-Javadoc)
   * 
   * @see java.lang.Object#toString()
   */
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder(
        "EmvTransactionLogEntry [\n  - transactionTimestamp: ");

    sb.append(formatDateWithTime(_transactionTimestamp));
    sb.append("\n  - includes time: " + _hasTime);
    sb.append("\n  - amount: ");
    sb.append(formatBalance(_amount) + "\n  - atc: " + _atc);
    sb.append("\n  - currency: " + _currency);
    sb.append("\n  - cryptogramInformationData: ");
    if (_cryptogramInformation != null) {
      sb.append(byte2Hex(_cryptogramInformation));
      sb.append("\n  - applicationDefaultAction: ");
      sb.append(bytesToHexNullAllowed(_applicationDefaultAction));
    }
    if (_customerExclusiveData != null) {
      sb.append("\n  - customerExclusiveData: ");
      sb.append(bytesToHex(_customerExclusiveData));
    }
    if (_unknownByte != null) {
      sb.append("\n  - unknownByte: " + byte2Hex(_unknownByte));
    }
    sb.append("\n");
    return sb.toString();
  }
}




Java Source Code List

at.zweng.bankomatinfos.AppController.java
at.zweng.bankomatinfos.exceptions.NoSmartCardException.java
at.zweng.bankomatinfos.exceptions.TlvParsingException.java
at.zweng.bankomatinfos.iso7816emv.BERTLV.java
at.zweng.bankomatinfos.iso7816emv.ByteArrayWrapper.java
at.zweng.bankomatinfos.iso7816emv.CPLC.java
at.zweng.bankomatinfos.iso7816emv.EMVTags.java
at.zweng.bankomatinfos.iso7816emv.EmvTag.java
at.zweng.bankomatinfos.iso7816emv.EmvUtils.java
at.zweng.bankomatinfos.iso7816emv.GPTags.java
at.zweng.bankomatinfos.iso7816emv.Iso3166CountryCodes.java
at.zweng.bankomatinfos.iso7816emv.Iso4217CurrencyCodes.java
at.zweng.bankomatinfos.iso7816emv.NfcBankomatCardReader.java
at.zweng.bankomatinfos.iso7816emv.TagAndValue.java
at.zweng.bankomatinfos.iso7816emv.TagImpl.java
at.zweng.bankomatinfos.iso7816emv.TagType.java
at.zweng.bankomatinfos.iso7816emv.TagValueType.java
at.zweng.bankomatinfos.model.AbstractTransactionLogEntry.java
at.zweng.bankomatinfos.model.CardInfo.java
at.zweng.bankomatinfos.model.EmvTransactionLogEntry.java
at.zweng.bankomatinfos.model.InfoKeyValuePair.java
at.zweng.bankomatinfos.model.QuickTransactionLogEntry.java
at.zweng.bankomatinfos.ui.AboutDialogFragment.java
at.zweng.bankomatinfos.ui.ChangelogDialogFragment.java
at.zweng.bankomatinfos.ui.ListAdapterEmvTransactions.java
at.zweng.bankomatinfos.ui.ListAdapterInfos.java
at.zweng.bankomatinfos.ui.ListAdapterQuickTransactions.java
at.zweng.bankomatinfos.ui.MainActivity.java
at.zweng.bankomatinfos.ui.NfcDisabledActivity.java
at.zweng.bankomatinfos.ui.ResultActivity.java
at.zweng.bankomatinfos.ui.ResultEmvTxListFragment.java
at.zweng.bankomatinfos.ui.ResultInfosListFragment.java
at.zweng.bankomatinfos.ui.ResultLogFragment.java
at.zweng.bankomatinfos.ui.ResultQuickTxListFragment.java
at.zweng.bankomatinfos.ui.SettingsActivity.java
at.zweng.bankomatinfos.util.ChangeLog.java
at.zweng.bankomatinfos.util.CustomAlertDialog.java
at.zweng.bankomatinfos.util.Utils.java