Package org.nfctools.mf

Examples of org.nfctools.mf.SimpleMfAccess


   */
  @Deprecated
  public static ApplicationDirectory getApplicationDirectory(MfCard card, MfReaderWriter readerWriter,
      byte[] writeKeyValue) throws IOException {

    SimpleMfAccess simpleMfAccess = new SimpleMfAccess(card, Key.A, MadConstants.DEFAULT_MAD_KEY);

    TrailerBlock madTrailer = (TrailerBlock)readerWriter.readBlock(new MfAccess(simpleMfAccess, 0, card
        .getTrailerBlockNumberForSector(0), 1))[0];

    if ((madTrailer.getGeneralPurposeByte() & MadConstants.GPB_MAD_AVAILABLE) != 0) {
View Full Code Here


  }

  @Deprecated
  public static boolean hasApplicationDirectory(MfCard card, MfReaderWriter readerWriter) throws IOException {
    try {
      SimpleMfAccess simpleMfAccess = new SimpleMfAccess(card, Key.A, MadConstants.DEFAULT_MAD_KEY);

      TrailerBlock madTrailer = (TrailerBlock)readerWriter.readBlock(new MfAccess(simpleMfAccess, 0, card
          .getTrailerBlockNumberForSector(0), 1))[0];

      return ((madTrailer.getGeneralPurposeByte() & MadConstants.GPB_MAD_AVAILABLE) != 0);
View Full Code Here

TOP

Related Classes of org.nfctools.mf.SimpleMfAccess

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.