ClassicFactory class Missing from TapLinx Java Classic Library

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ClassicFactory class Missing from TapLinx Java Classic Library

58 Views
Islam_Elmasry
Contributor I

Dear NXP Support Team,

I have downloaded the Java TapLinx library to work with MIFARE Classic S70 4K cards. However, I noticed that the ClassicFactory.class file is not included in the Classic TapLinx JAR.

As I understand, ClassicFactory is required to create the Classic card instance, similar to how we use DESFireFactory for DESFire cards:

IDESFireEV3 desfire =
    DESFireFactory.getInstance()
        .getDESFireEV3(TapLinx.INSTANCE.getCustomModules());

Could you please advise me on the following:

  1. Is ClassicFactory included in a separate JAR or library?
  2. If so, could you please provide the correct library/version that I need to use?
  3. Is there a different API or recommended approach for working with MIFARE Classic S70 4K using the Java TapLinx library?
  4. Is the Classic TapLinx library compatible with the Java (non-Android) environment I am using?

I would appreciate your guidance on how to correctly initialize and communicate with MIFARE Classic S70 4K cards using TapLinx.

0 Kudos
Reply
3 Replies

36 Views
Fabian_R
NXP TechSupport
NXP TechSupport

Hello sir,

Thanks for your interest in our products.

Please keep in mind that MIFARE Classic isn't recommended for new designs. This is mentioned in the product support page: MIFARE Classic EV1 1K - 4K | NXP Semiconductors the MIFARE DESFire Light | NXP Semiconductors is recommended instead.

In order to get the correct APIs for MIFARE Classic, please open Taplinx Android's JavaDoc: https://www.nxp.com/webapp/Download?colCode=ANDROIDJAVADOC&appType=license

This document shows the API for MFClassic.

 

Fabian_R_0-1787778230590.pngFabian_R_0-1787778230590.png

 

Best Regards,
Fabian
0 Kudos
Reply

23 Views
Islam_Elmasry
Contributor I

Thanks Fabian_R for your fast response.
But the problem is as shown in my attached picture:
DESFireFactory does NOT exist in the JAR.

Islam_Elmasry_0-1787823985814.pngIslam_Elmasry_0-1787823985814.png

 

0 Kudos
Reply

14 Views
Fabian_R
NXP TechSupport
NXP TechSupport

Hello sir,

This is correct; it doesn't exist for DESFire, as you may have seen in the JavaDoc. Depending on the DESFire card used, the Interfaces and Classes are designed for each type.

For further information on its usage, please take a look at the Sample Applications we provide. In the documentation's User Guide (UG10044) is shown how to setup your Taplinx project.

Fabian_R_0-1787849561908.pngFabian_R_0-1787849561908.png

 

Best Regards,
Fabian
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2408544%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EClassicFactory%20class%20Missing%20from%20TapLinx%20Java%20Classic%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2408544%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EDear%20NXP%20Support%20Team%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EI%20have%20downloaded%20the%20Java%20TapLinx%20library%20to%20work%20with%20%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%3EMIFARE%20Classic%20S70%204K%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%3E%20cards.%20However%2C%20I%20noticed%20that%20the%20%3C%2FSPAN%3E%3CSPAN%3EClassicFactory.class%3C%2FSPAN%3E%3CSPAN%3E%20file%20is%20not%20included%20in%20the%20Classic%20TapLinx%20JAR.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EAs%20I%20understand%2C%20%3C%2FSPAN%3E%3CSPAN%3EClassicFactory%3C%2FSPAN%3E%3CSPAN%3E%20is%20required%20to%20create%20the%20Classic%20card%20instance%2C%20similar%20to%20how%20we%20use%20%3C%2FSPAN%3E%3CSPAN%3EDESFireFactory%3C%2FSPAN%3E%3CSPAN%3E%20for%20DESFire%20cards%3A%3C%2FSPAN%3E%3C%2FP%3E%3CPRE%3E%3CSPAN%3EIDESFireEV3%20desfire%20%3D%0A%20%20%20%20DESFireFactory.getInstance()%0A%20%20%20%20%20%20%20%20.getDESFireEV3(TapLinx.INSTANCE.getCustomModules())%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FPRE%3E%3CP%20class%3D%22%22%3E%3CSPAN%3ECould%20you%20please%20advise%20me%20on%20the%20following%3A%3C%2FSPAN%3E%3C%2FP%3E%3COL%3E%3CLI%3E%3CSPAN%3EIs%20%3C%2FSPAN%3E%3CSPAN%3EClassicFactory%3C%2FSPAN%3E%3CSPAN%3E%20included%20in%20a%20separate%20JAR%20or%20library%3F%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EIf%20so%2C%20could%20you%20please%20provide%20the%20correct%20library%2Fversion%20that%20I%20need%20to%20use%3F%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EIs%20there%20a%20different%20API%20or%20recommended%20approach%20for%20working%20with%20%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%3EMIFARE%20Classic%20S70%204K%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%3E%20using%20the%20Java%20TapLinx%20library%3F%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EIs%20the%20Classic%20TapLinx%20library%20compatible%20with%20the%20Java%20(non-Android)%20environment%20I%20am%20using%3F%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3E%3CSPAN%3EI%20would%20appreciate%20your%20guidance%20on%20how%20to%20correctly%20initialize%20and%20communicate%20with%20MIFARE%20Classic%20S70%204K%20cards%20using%20TapLinx.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2408544%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EApp%20registration%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAuthentication%20server%20problems%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ECode%20examples%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffline%20authentication%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOnline%20authentication%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2408607%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20ClassicFactory%20class%20Missing%20from%20TapLinx%20Java%20Classic%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2408607%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%20lang%3D%22en-US%22%3EHello%20sir%2C%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%20lang%3D%22en-US%22%3EThanks%20for%20your%20interest%20in%20our%20products.%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%3CSPAN%3EPlease%20keep%20in%20mind%20that%20MIFARE%20Classic%20isn't%20recommended%20for%20new%20designs.%20This%20is%20mentioned%20in%20the%20product%20support%20page%3A%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fproducts%2Frfid-nfc%2Fmifare-hf%2Fmifare-classic%2Fmifare-classic-ev1-1k-4k%3AMF1S50YYX_V1%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%3EMIFARE%20Classic%20EV1%201K%20-%204K%20%7C%20NXP%20Semiconductors%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%26nbsp%3Bthe%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fproducts%2Frfid-nfc%2Fmifare-hf%2Fmifare-desfire%2Fmifare-desfire-light%3AMIFARE_DESFIRE_LIGHT%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%3EMIFARE%20DESFire%20Light%20%7C%20NXP%20Semiconductors%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%20is%20recommended%20instead.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%20lang%3D%22en-US%22%3EIn%20order%20to%20get%20the%20correct%20APIs%20for%20MIFARE%20Classic%2C%20please%20open%20Taplinx%20Android's%20JavaDoc%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fwebapp%2FDownload%3FcolCode%3DANDROIDJAVADOC%26amp%3BappType%3Dlicense%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fwebapp%2FDownload%3FcolCode%3DANDROIDJAVADOC%26amp%3BappType%3Dlicense%3C%2FA%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%20lang%3D%22en-US%22%3EThis%20document%20shows%20the%20API%20for%20MFClassic.%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%20lang%3D%22en-US%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Fabian_R_0-1787778230590.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Fabian_R_0-1787778230590.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Fabian_R_0-1787778230590.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Fabian_R_0-1787778230590.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F395391i297944D806BF6E4B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Fabian_R_0-1787778230590.png%22%20alt%3D%22Fabian_R_0-1787778230590.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFabian_R_0-1787778230590.png%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFabian_R_0-1787778230590.png%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFabian_R_0-1787778230590.png%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFabian_R_0-1787778230590.png%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2408973%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20ClassicFactory%20class%20Missing%20from%20TapLinx%20Java%20Classic%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2408973%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20sir%2C%3C%2FP%3E%0A%3CP%3EThis%20is%20correct%3B%20it%20doesn't%20exist%20for%20DESFire%2C%20as%20you%20may%20have%20seen%20in%20the%20JavaDoc.%20Depending%20on%20the%20DESFire%20card%20used%2C%20the%20Interfaces%20and%20Classes%20are%20designed%20for%20each%20type.%3C%2FP%3E%0A%3CP%3EFor%20further%20information%20on%20its%20usage%2C%20please%20take%20a%20look%20at%20the%20Sample%20Applications%20we%20provide.%20In%20the%20documentation's%20User%20Guide%20(UG10044)%20is%20shown%20how%20to%20setup%20your%20Taplinx%20project.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Fabian_R_0-1787849561908.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Fabian_R_0-1787849561908.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Fabian_R_0-1787849561908.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F395456iC89EB005A50FC7AD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Fabian_R_0-1787849561908.png%22%20alt%3D%22Fabian_R_0-1787849561908.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFabian_R_0-1787849561908.png%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFabian_R_0-1787849561908.png%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFabian_R_0-1787849561908.png%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2408836%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20ClassicFactory%20class%20Missing%20from%20TapLinx%20Java%20Classic%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2408836%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThanks%20Fabian_R%20for%20your%20fast%20response.%3CBR%20%2F%3EBut%20the%20problem%20is%20as%20shown%20in%20my%20attached%20picture%3A%3CBR%20%2F%3E%3CSTRONG%3EDESFireFactory%20does%20NOT%20exist%20in%20the%20JAR.%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Islam_Elmasry_0-1787823985814.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Islam_Elmasry_0-1787823985814.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F395428i3EA1B2D06CEAAB75%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Islam_Elmasry_0-1787823985814.png%22%20alt%3D%22Islam_Elmasry_0-1787823985814.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EIslam_Elmasry_0-1787823985814.png%3C%2Fspan%3E%3C%2Fspan%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EIslam_Elmasry_0-1787823985814.png%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E