Package org.nfctools.mf.card

Examples of org.nfctools.mf.card.MfCard1k


      AcsConnectionToken connectionToken = new AcsConnectionToken(card);

      switch (historicalBytes[10]) {
        case 1:
          return new MfCard1k(new byte[0], connectionToken);
        case 2:
          return new MfCard4k(new byte[0], connectionToken);
      }
    }
View Full Code Here


  private MfCardListener cardListener;

  public MfCard loadCardFromFile(String fileName) throws IOException {
    Collection<String> lines = readLinesFromFile(fileName);

    MfCard mfCard = lines.size() == 256 ? new MfCard4k(null, null) : lines.size() == 64 ? new MfCard1k(null, null)
        : null;
    if (mfCard == null)
      throw new MfException("unknown card. lines " + lines.size());

    BlockResolver blockResolver = new BlockResolver();
View Full Code Here

    ArygonConnectionToken connectionToken = new ArygonConnectionToken(targetNumber);

    switch (type) {
    case 0x08:
      return new MfCard1k(nfcId, connectionToken);
    case 0x18:
      return new MfCard4k(nfcId, connectionToken);
    case 0x20:
      throw new MfException("DESFire not supported yet");
    }
View Full Code Here

TOP

Related Classes of org.nfctools.mf.card.MfCard1k

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.