Native OffCard API's

Hello everyone.
From topics posted int his forum I found out that there is ability to write OffCard-side application for working with JCOP card not inly Java, but also in C/ C++?I am right?
What are the native languages and interfaces/classes, that I can use to program host-side application for sending APDU's to my Applet installed on JCOP card?
Where can i find more info about that?
It would be very nice,
if you could tell me more about such OffCard solutions.
Bes regards,
Eve

To make it more clear,
I decided to explain, why I am so interested in alternative offCard solutions.
See, I have already developed an Java Card Applet.
I implemented Java OffCard API program, that enables to call to the Applet functions, installed on card.
But I also have a project, written in C++. So, I need to write some C functions, that just would send several APDU's to my implemented applet on-card.
I suppose, that communicating to the card is something quite similar to communication through sockets, just sending predefined APDU array. (simulation works just like that). So I think there must be some possibility in C/C++/.Net to send APDU's to the pcsc reader to use my applet. But there is no documentation to jct.dll that is used.
I hadn't been able to find more concrete information in the Internet.
Could you help me?
Best regards,
Eve

Similar Messages

  • Hello world Native Extension API

    Hi all :-)
    I am an android expert and I'd really love to create some cool extensions like the android notifications, but since I don't know much about Flex, I have a lot of trouble getting the test vibrator with native extension working.
    (http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/vibration.html)
    My sample is still buggy, it is probably beginner's bug, but I don't see how to fix it yet.
    I am surely not the only native guy trying to do this, so I would like to sumarize here all the steps needed to have our first hello world Native Extension API
    Install Flex 4.5.1 http://www.adobe.com/go/try_flashbuilder/ and download the Adobe AIR 3.0 RC http://labs.adobe.com/downloads/air3.html  as well as the sample files http://download.macromedia.com/pub/developer/air/ane/Vibration.zip
    Create a test Flex mobile project.(all the deffault parameters are fine) I'll call it HelloWorldNativeExtension.
    (If AIR 3 is not released yet) Do the following to tell Flex builder to use the RC on your test project : http://forums.adobe.com/thread/899921
    Unzip the vibration.zip, and go to ready to use extansion.
    Go to Project -> Flex buildpath -> Libraries -> Add a new swc. Add the ready to use extension as a library. Then open the extensions properties and change the link type from "bundled with" to "external linkage"
    Go to HelloworldNativeExtension-app.xml and in the tag manifestAddition, add : <uses-permission android:name="android.permission.VIBRATE"/>
    Write a sample view (as described below)
    Run (target platform->android and then chosse to run on a device)
    When asked to update the air version, answer yes
    Wait a loooong time before it actually start.
    Here is my code for the sample view:
    In HelloworldNativeExtension.mxml
    Use the following code :
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx">
        <fx:Script>
            <![CDATA[
                import com.adobe.nativeExtensions.Vibration;
                protected function testButton():void
                    textArea.text="Before vibration";
                    var vibe:Vibration;
                    if (Vibration.isSupported)
                        vibe = new Vibration();
                        vibe.vibrate(2000);
                    textArea.text="After vibration";
            ]]>
        </fx:Script>
        <s:Panel title="Exemple MXML" width="330">
            <s:layout>
                <s:VerticalLayout paddingLeft="15" paddingTop="15" paddingBottom="15" paddingRight="15"/>
            </s:layout>
            <s:Label x="223" y="173" text="test" id="textArea"/>
            <s:Button label="Vibrate" click="testButton()"/>
            <s:Label id="result" width="265"/>
        </s:Panel>
    </s:Application>
    Well... so far my project doesn't compile because the library is loaded externally. It compiles fine if I add it as a bundled library, but then the virbrator can't work (External native code have to be loaded externally)
    And thus so far I get the errors :
    Description
    Ressource
    Chemin
    Emplacement
    Type
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.display]::IBitmapDrawable.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    1046: Ce type est introuvable ou n'est pas une constante de compilation : [flash.events]::IEventDispatcher.
    HelloworldNativeExtension
    Inconnu
    Erreur Flex
    (Which means something like : 1046: this type cannot be resolved or is not in the buildpath ... So it probably means the project doesn't compile well)
    So I'm still trying to figure out what to do, but I am close I think... Very close.

    Yes, in fact you are very close
    You will have to put an <extensions> tag in app-xml if not already done so:
    <extensions>
    <extensionID>com.adobe.Vibration</extensionID>
    <extensions>
    Then since it is FlashBuilder 4.5.1, you will have to package the android application through command line since it requires 1 more parameter -extdir :
    adt -package -target apk . . . app.apk app.xml app.swf -extdir extensions
    extensions is the directory which contains your .ane file. Checkout http://www.adobe.com/devnet/air/articles/extending-air.html#articlecontentAdobe_numberedhe ader_1 for more details.
    Thats all. You should be able to run your app now. Let me know if it still doesnt work.
    Thanks,
    Meet
    AIR Team

  • Find reader through Offcard API

    Hi friends,
    System.out.println("Search readers..... ");
    Context context = new Context();
    context.EstablishContext(PCSC.SCOPE_GLOBAL, null, null);
    String[] readers = context.ListReaders();
    if (readers.length <= 0) {
         System.err.println("No readers found...");
         return;
    System.out.println("Current using reader..... ");
    System.out.println(readers[0]);
    Card card = context.Connect(readers[0]);In IBM offcard API, is there any code like this for checking current reader name...because i couldnt find out my reder name... my reader is "Gemplus USB Smart Card Reader o"... can any body help me....

    Ask in the Reader forum. However, the process should be a property of the print driver for your printer, not Reader.

  • Offcard apis

    I am currently looking at the JCOP tools plugin for eclipse. I have the plugin and it's registered. I have created a very simple applet which allows me to send and receive information. It works fine using the simulator provided. I now wish to write a an application which communicates with the applet using APDUs. As I understand I should be able to use classes within com.ibm.jc to communicate with the emulator and/or a card reader. I can't however find the offcard apis (com.ibm.jc). The libraries were not included in the zip file which I downloaded from here http://download.boulder.ibm.com/ibmdl/pub/software/dw/jcop/tools.zip.
    This may seem a silly question, but where do I get the offcard libraries from?

    You can find the JAR file: \plugins\com.ibm.bluez.jcop.eclipse_3.1.1.b\lib\offcard.jar and the API doc in Eclipse under Help, Help Contents, JCOP Tools User Guide.

  • Future native Android API support in AIR ?

    Greetins,
    Is Adobe planning to increase the number of native Android APIs that are accessible through AIR?
    If so, is there a planned order in which this additional API support will be added to future versions of AIR SDKs?
    AIR is an easier way to target Android (for me) than native Android dev with ADT. One major advantage being the Flash Builder Design View. But those advantages only go so far against the disadvantage of not being able to access all the native API's on the devices.
    If the plan is to eventually support them all (within a reasonable time frame), then I can wait. If however, AIR on Android will not support any more APIs than it does now, learning JAVA for ADT dev will become necessary.
    Thank you

    Thanks for the responses. I posted to ideas as suggested. See link below.
    http://ideas.adobe.com/ct/ct_a_view_idea.bix?c=9D564F43-979A-4E35-AA21-85A61B6AB8DE&idea_i d=97A23FF1-8471-4C26-8EC3-1FC9A9B7F29D

  • Achemy Feature Request - Native AMF API

    My understanding from the article below is that Flash uses
    native C code to do AMF serialization:
    http://www.onflex.org/ted/2007/11/abcs-of-amf.php
    What would be great is if Alchemy could directly call the
    native serialization API to read/write data. I've been doing some
    experimentation and speed comparisons processing ByteArrays in
    Alchemy (results and sample code soon to be posted on my blog) and
    it beats the speed of even a Vector doing math on large sets of
    data - but transferring a data to and from a Vector kills the
    benefits.

    Web Server is not currently supported under VxWorks or Embedded Linux. There's information on the supported platforms on the Web Server page at http://www.sun.com/webserver

  • Newbie question: tapping native OS APIs through java?

    I'm new to java, and was wondering if classes existed for doing windows platform specific things on the windows platform. Please point me to any information/sites, or suggested search terms for a search engine.
    Things like if I wanted to edit a registry key, or stop/start a windows service, or perhaps log something to the eventlog. I realize & believe in the Java principal of abstracting the OS, but sometimes you want to touch the OS functionalities.
    Is the answer to use another language? I know I could write extend Java with C functions, but thats not practical each time you want to touch the OS -- so I'd just use another language.
    thanks!

    ok, mostly you would use [url http://java.sun.com/products/jdk/1.2/docs/guide/jni/]JNI (Java Native Interface) and C.
    Not for the faint hearted.
    However, you might not have to go this way.
    registry key
    The java.ava.util.prefs package will use the registry on windows systems, but you have limited control over the regestry, you could also use the
    Runtime.exec( "..." ) trick, with an app pre-written like Cygwins Regtool.
    stop/start a windows service
    Again you could write some native code, or use the Runtime.exec trick with [url http://www.sysinternals.com/ntw2k/freeware/psservice.shtml]PS Service
    perhaps log something to the eventlog
    I think the the java.util.logging package uses the native event log in windows, and I'm sure [url http://jakarta.apache.org/log4j/docs/index.html]Log4j can use it.
    I could write extend Java with C functions, but thats not practical each time you want to touch the OS
    Eeh? How else do you expect it to work?
    OK, I agree JNI is pants, and should be replaced with CNI.

  • VC8 clients and native invocation API

    Hi,
    Could someone from Sun tell me whether JNI invocation API for the 1.5.0_07 Windows JVM supports .NET clients compiled with Visual C++ 8?
    I have an ASP.NET application that calls into the JVM through the JNI invocation API. I know that there were problems with VC7 clients calling into the 1.3 and 1.4 JVM's (they only surfaced under high concurrency), but I was told that the 1.5 JVM would better support .NET clients.
    Thanks...

    See
    http://www.simtel.net/product.php[id]95126[SiteID]simtel.net

  • Crystal Reports version 13 managed api's run slower than native version 11

    Hello,
    I am a senior engineer, working in a project of porting client code written in C++ using Crystal 11. It uses the native COM api like shown approximately in the following code fragment:-
    IApplicationPtr pApplication;
    pApplication.CreateInstance("CrystalRuntime.Application.11");
    pReport = pApplication->OpenReport("myreportfile.rpt", vtOpenMethod);
    ... code to setup Export Options, setLogonInfo on database, set parameters for report etc.
    pReport->Export(false);
    This code is launched in few threads, and works nicely, and a very stable used code in real world.
    We have ported this to Crystal 13 .NET api's and our code approximately looks like
    ReportDocument document = new ReportDocument();
    document.Load("myreportfile.rpt", OpenReportByTempCopy);
    .. set diskfile format options, pdf format options, paramters, logon info etc. very very similar to the native C++ code, almost matching 1 by 1 line
    document.Export();
    document.Close();
    No problem so far, and it works fine. This is also launched in multiple threads same in number like native, and works fine. We get the same pdf file generated.
    But here is the problem. In native we are getting easily around 2000 reports in 20 mins. But in managed we are taking 35 mins for the same set of reports. The output looks fine and same etc. But there is a good 40-50% performance regression, and we have tried so many things, but never able to beat this 40-50% perf degradation.
    Can you please help ? A few questions. First are we executing document.Export really concurrently ? Is there any waiting or serialization going on insider Crystal api's. Is this Crystal 13 managed api, a thin stub layer just passing on to native COM apartment threaded dll. Can this layer introduce such a delay ?
    A few things we have tried and haven't succeeded for summary:-
    1. Opened 1 dummy report in the beginning and kept opened throught, to flush any ref counted inits
    2. Didn't perform Close immediately, but had another thread chew on it and Close delayed
    3. Reduced the thread to 1, (in native as well), again our perf degradation is comparable.
    4. Optimized the reports from various suggestion in this forum. Did better, but so did the native, and still we are comparatively poorer.
    Thanks for the same, Eager to supply more info if required.
    R. Sridharan

    First I'd like you to have a look at the document SAP Crystal Reports Engine in a Multi-Threaded Visual Studio Application. Next make sure you are using SP 10 for CRVS.
    Next, you will have to tell me what database you are using, connection type and if MS SQL, what client?
    BTW.; these being community forums, you may get an answer, you may not. It may be timely, or not. If you are looking for a faster response, there is the option of creating a phone incident here:
    Crystal Single Case Technical Support - SAP Business Objects US Online Store | SAP Online Store
    One more KBA to look at:
    1403341 - How to export reports in multiple threads using the Crystal Reports .NET RAS SDK 
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter
    Message was edited by: Ludek Uher

  • SQL Native Client 11 (ODBC) - SQL Server 2012 - MS DTC - Transaction Promotion

    Hi and thanks for any help in advance,
    Does the SQL Native Client (ODBC) resource manager support automatic transaction promotion?  I don't see anyway to get this to work using the ODBC API or the MS DTC API.
    I have a connection that enlisted into a local transaction (setting auto commit to false).  Then I get another call that is part of the same transaction but to a different server.  So I try to enlist the first connection handle into a new distributed
    transaction but that fails with the error code 25000 - which seems to indicate that promotion is not possible.  Am I missing some other API call?
    Any help appreciated.

    For .Net yes.  If you are using SQL Native client and ODBC - the Enlist keyword is not supported in the connection string.  For .Net System.Transaction takes care of doing the promotion for you if required.  What I am asking is how that is
    achieved using SQL Native client API and the MS DTC using C++?

  • Start a batch action sequence by name inside a native Acrobat Plugin (C++)

    Hi folks,
    i am trying to figure out how to execute a named batch sequence (build by the action wizard) inside Acrobat X via the native Acrobat API. I could not find a function in the SDK that could execute a sequence on the current document.
    Can someone point me to the right direction or tell me wich function i have to call, to achive this.
    Many Many Thanks.
    Greets
    1122tra

    No Problem, if it works for Acrobat X for the moment. Will implement it as general as possible so that changes in the *.sequ file do not need much change in code.
    The people from evermap are doing the same in their code i suppose because their logfile points in this direction.

  • Color Tweening using Drawing API

    Hi, I have a function that draws a shape. The color value can
    be passed in as a parameter. I have called this function quite a
    few times. All of the objects start off the same color.
    I want to know how to randomly make each one switch color
    immediately (like a light bulb, on, off)), over a set period of
    time
    Anyone any ideas?
    Thanks

    When you say bezier curves I presume you mean quadratic
    bezier curves that the native drawing API uses? Or are you
    converting spline data or cubic beziers to native drawing api
    parameters from the .net data in flash as well? Some of these
    calculations can take time for large data sets if done with an
    emphasis on highly accurate approximations in flash.
    Here are a bunch of questions I could think of:
    How are you receiving the drawing data? are they coming in
    via xml, for example? (Are you sure its the drawing activity that
    is slow and not the parsing of data). Are they coming in as 5000
    points or incrementally over time?
    Are you clearing and redrawing from the start of drawing
    sequence each time (it seems not, but just wanted to check)?
    Are you drawing to a single Sprite's graphics context or are
    you creating layered Sprites to hold subsequent portions of the
    rendered drawing?
    when you say 'rotating the cursor' along the path...are you
    animating anything as well? How are you checking the point
    intersection - bounds based? or against a rendered shape?
    The last thing I can think of is: are you using some of the
    advanced lineStyle settings? some of these settings can slow things
    down substantially with large and complex drawings, whereas other
    settings are much faster. Also even specifying the default settings
    can be slower than not specifying them. But again, this is usually
    only noticeable for very long drawing paths.
    Your post doesn't have enough information to advise directly,
    but perhaps if you answer those questions it might provide us some
    clues.

  • How to compile and creat JAR with native function

    Hi there,
    I wrote some native function for J2ME. But it seems like using J2ME wireless Toolkits, we can not compile native function. Is it right?
    Is anyone knowing how to compile and make JAR with J2MEWTK or command line?
    Thanks,
    Merry Christmas!!

    [zack327],
    JNI like or native interfaces APIs is not supported in the CLDC/MID Profile 1.0 specification. If you have J2ME code that includes JNI code, the J2MEWTK tool will not compile successfully for you.
    To package the compiled code to a MIDlet suite .jar file, use the 'Package' command in the J2MEWTK toolkit. It is found on the top menu bar 'Project' option as item on the dropdown list.
    To package the MIDlets into a MIDlet suite .jar file from the command line, you can execute the usual jar file command:
    jar cf MyMIDletSuite.jar Midlet.class
    You will also need to create a MIDlet .jad Application Descriptor file as well.
    HTH.
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • Support for native packaged apps?

    Hi,
    I'm looking to incorporate some Native Process functionality into my app, which means I'll be deploying EXE, DMG, and possibly RPM version of the application.
    Is there anyway that Melrose can facilitate this in it's current state? Looking at the developer panel, it doesn't seem so...

    That helps alot, I'll now have to re-think my business model as obviously InMarket is not the place I can be if I want to develop cutting edge AIR applications. I truly appreciate the timeframe though, it gives me some solid info I can plan around.
    I'm not sure I agree with the direction entirely, I think the monetization opportunities go down 10-fold by not allowing use of the Native API's in 2.0.
    With the native process API's the variety of application's we could build in AIR expanded exponentially, suddenly we can take advantage of thousands of pre-existing native processes to do all kinds of things that AIR can't do natively. The possibilities are endless.
    So, while you are focusing on reaching into new markets, you're limiting AIR apps to be simplistic in nature, and quite limited in functionality. Not to mention, it's a poor message to developers: Here's this API we released, but it will be 18mths+ before we will actually support it in our own storefront.
    I'm not really sure what one has to do with the other as well. Mobile/Tabled and TV's will obviously not support Native Process anyways, so I don't see how adding support for native apps in Desktop storefronts, should really affect the partnerships / development of these other storefronts.
    It seems you guys are overthinking things. Start with getting the simple/basic stuff working properly, then you can conquer the world

  • IPhone API Exposure: Future Roadmap

    What are the plans for exposing further native iPhone APIs to the packager environment?
    Like another poster here, I need access to the address book, although I'm not sure that would be via an 'API' as such, as I suppose it's an application in its own right?  On the other hand, I've seen native iPhone apps that can access the address book, so clearly there is some common layer?
    Currently available APIs listed in the LABS FAQ are as follows:
    MultiTouch
    Screen Orientation
    Saving images to Photo Library
    Accelerometer
    Geo-location
    Cut / Copy / Paste
    Many thanks
    Peter Robertson

    Additionally,
    To post your code unaltered by the formatting you need to bracket your code like this:
    { code }
    your code here;
    { code }
    without the spaces near the brackets to get the desired effect.
    foo = [self bar:foo];
    Having your code correctly represented will help you immensely when asking people for help with debugging.
    Also the correct place to report bugs and or make feature requests is: https://bugreport.apple.com
    That is the only official feedback site that is guaranteed to get the issues in front of the people who actually work on the things you're reporting about. Even if you get a "Duplicate Report" message for every bug you file volume of reports about an issue can help move it to the top of the queue.
    Apple does pay attention and track issues reported here - especially for beta releases - so good, clear, concise bug reports entered here helps everyone. However, if you are new to Cocoa please make sure that the problem actually lies with the thing you're reporting and not with your understanding of the thing you're reporting. Keeping the signal to noise ratio good will again help everyone involved.
    Thanks for your attention,
    =Tod
    PS In lieu of a sticky maybe we can bump this thread to keep it visible?

Maybe you are looking for

  • Once and for all: is video/audio chat from Mac to PC using MSN possible?

    I've read all the posts, and all the jabber guides, and Mercury stuff, and it all seems like a huge hassle. I have a friend overseas who uses MSN (like EVERYONE overseas). he has a pc (again, like everyone overseas since Macs are 2x as expensive over

  • How to create special column which represents result of a query

    Hi all, I need your help once more. The situation is the following: I have a table MESSAGE which has some billion entries. The columns are msg_id, vehicle_id, timestamp, data, etc. I have another table VEHICLE which holds static vehicle data (about 2

  • Pls Help!! BMP EJB can select but not modify table

    Hi, please help! I wrote a CMP EJB for a simple table. Inside are JDBC calls to the database, using a connection object generated from the line: return new oracle.jdbc.driver.OracleDriver().defaultConnection(); Or return DriverManager.getConnection("

  • Delete button for some photos in the moments tab is disabled

    Several of my photos after the ios8 update are unable to be deleted. I select them but the trash button is disabled. If I open them individually the trash button is not there in the bottom right. Please help. very annoying.

  • A Slight Problem with an Assignment (Very Easy)... Plz Help!

    Objective: charAt() Question: Write a program that lets you enter in any word and that will print out the original word and its reverse. If you entered "compiler", it would print out: The original word is compiler The reverse of the word ls relipmoc