Java Card Basics

Hello People
This is my first time working with Java Card and any other smart card related stuff.
So I read the 3 parts of "An Introduction to Java Card Technology" and other two articles there.
I have serveral inquires about the issue.
Is the STK the same as sim.toolkit ? or is it a proprietry kit for each smart card manufacturer ?
What is sim.toolkit ? is it different than what java card provides ?
What I want to do is an applet on a SIM that sends encrypted SMSs.
I read that java card applets are passive, does that mean when the applet is installed on the SIM,
another app (probably J2ME) must activate and run it ?
In my project, do I need to use sim.toolkit.* for SMS capabilities or java card got that?
Exucse my ignorance in the matter, any help is appreciated,
Regards

So, no one is familiar with Java Card basics to clear some stuff for me ?

Similar Messages

  • Basic Java Card/Card reader application question...

    Hello all,
    I have a basic question regarding java card applications. Do you always require a host application(on some PC/workstation server) to send and receive data from the java card (through the card reader using any of the available interfaces like OCF etc) or can you have a stand alone card reader application that interacts with java cards inserted into the reader?
    For example..in a mass transit application, you have a reader that reads an e-purse smart card that is swiped and does the necessary deduction of the fare from the card. In this case, where does the host application reside (there is no other host system involved other than the reader here? ) How is this done? Does the card reader carry the necessary code to interact with cards?
    Any information is greatly appreciated.
    Thanks for the time.
    Regards,
    Ajay

    Documentation is provided by the terminal vendors. Just think of it like this, there are drivers that read the card, but don't know what to do with the data without some form of middleware to process it.

  • Java application communicate with java card applet without java card

    Can I write java application to communicate with java card applet without using java card?
    Can I send APDU to java card applet on computer(not install in java card)? If it's not, how can I write?
    Best Regard,
    Thanawan

    Your JCOP simulator implements a JCVM/JCRE according
    to specs. The CREF does that same thing excepts it's
    only simulates the API without crypto or third party
    applets. JCOP simulator is more then that. They are using thesame_ codebase for simulator and for oncard JCVM. Basically you are dealing with the same environment in both cases.

  • How can I choose java card?

    I'm new for smart card.
    I want to do project about security (It use authentication by MAC.) How can I choose the card and reader/writer? Have vender in thailand?
    If I bought normal smart card and reader/writer, can I write java on it? If it's possible , how can I do?
    Note that: I want only basic java card.
    Thanks

    I go to Schlumberger website. I found e-gate SDK kit ID. 401140.
    I want to know that it have more basic can I get to do my project?
    About gemplus? I go to gemplus website too, but I don't found more enough information to decided.
    Cloude you advise version of card and reader that can I get to do my project? (I have budget about $250)
    Can it work with Java Card 2.2 Development Kit by sun, if I buy only card and card reader?
    Thanks,

  • How to run a library in Java Card

    Hi guys
    I have a question related to the running in emulator. Well, I now have 2 separated projects, one is class library and the other is java card applet. Both of them are constructed by Netbeans
    When I build the classic library, it is fine. I have class file, cap file and export file of this package. This is the source code of my class library
    package lib4;
    public class lib4 {
        public short func1(){
            return (short)0x1234;
    }And then, I use this library for the java card applet which is developed onto another project in Netbeans as well. This applet invokes func1 in class lib4. This is the source code of the applet
    package app1;
    import javacard.framework.*;
    import lib4.*;
    public class app1 extends Applet {
        public static void install(byte[] bArray, short bOffset, byte bLength) {
            new app1();
        protected app1() {
            register();
        public void process(APDU apdu) {
            //Insert your code here
            short t;
            lib4 d= new lib4();
            t = d.func1();
            ISOException.throwIt((short)t);
    }However, when I build this applet by Netbeans, the error is "error: export file lib4.exp of package lib4 not found.". I think that's fine if I build them by ANT TASK. Nervertheless, for the sake of emulating, I want to build them onto Netbeans.
    This is the whole result of the build
    init-platform-properties:
    Using JavaCard Platform Definition at C:\Documents and Settings\chandufo\.netbeans\6.9\config\Services\Platforms\org-netbeans-api-java-Platform\javacard_default.jcplatform
    Java Card Home is C:\Program Files\NetBeans 6.9\javacard\JCDK3.0.2_ConnectedEdition (Java Card Platform)
    init-ri-properties:
    init-device-properties:
    Platform device property name is jcplatform.javacard_default.devicespath
    Computed device folder path is C:\Documents and Settings\chandufo\.netbeans\6.9\config\org-netbeans-modules-javacard\servers\javacard_default
    Platform device file path property name is C:\Documents and Settings\chandufo\.netbeans\6.9\config\org-netbeans-modules-javacard\servers\javacard_default\Default Device.jcard
    Deploying to device Default Device http port 8019
    init-keystore:
    Keystore is C:\Program Files\NetBeans 6.9\javacard\JCDK3.0.2_ConnectedEdition/samples/keystore/a.keystore
    build-dependencies:
    unpack-dependencies:
    compile:
    Compiling 1 source file to D:\netbean\app1\build\APPLET-INF\classes
    compile-proxies:
    create-descriptors:
    create-static-pages:
    do-pack:
    Resolved dist.bundle as relative file D:\netbean\app1\dist\app1.cap
    Resolved build.dir as relative file D:\netbean\app1\build
    Packager [v3.0.2]
        Copyright (c) 2009 Sun Microsystems, Inc.
        All rights reserved.
        Use is subject to license terms.
    [ INFO: ] Validating Command Line
    [ INFO: ] Setting packaging information
    [ INFO: ] Package is being created
    [ INFO: ] Converter [v3.0.2]
    [ INFO: ]     Copyright (c) 2009 Sun Microsystems, Inc.
        All rights reserved.
        Use is subject to license terms.
    [ INFO: ] conversion completed with 1 errors and 0 warnings.
    error: export file lib4.exp of package lib4 not found.
    D:\netbean\app1\nbproject\build-impl.xml:205: Creation of D:\netbean\app1\dist\app1.cap was not successful. See Packager output
    BUILD FAILED (total time: 1 second)-->> What can I do now?
    Any kinds of help will be appreaciated.

    First things first.
    Do you know how to compile a simple hello word program, get it to compile, and run it in jbuilder? Do you know how to do other basic programming tasks (ignoring iADF for now) in the IDE? If not, you need to concentrate on how to use jbuilder before messing with Oracle ADF (Oracle Application Development Framework). Alternately, if you are very familiar with another IDE such as Eclipse, you can look at ADF plugins for it instead (if they exist). If you are not familiar with Java, its supporing technologies, and an IDE very well, I suggest you drop ADF and work on simpler architectures because ADF is way, way too advanced for you at this time. Instead, spend your time reading books on Java, etc from cover to cover and working through a number of their examples instead.
    Assuming you are an experienced programmer and plan to go ahead with ADF, I suggest you go to amazon.com and order a book on ADF that has good reviews. Read it from cover to cover and work through a number of the book's examples. You should start out with a very very simple ADF project before attempting something more complicated, then build on it. If you are not familiar with some of the components of ADF such as JSF, I suggest you create a few simple projects using them in isolation before combining them all under ADF.

  • Pls: I have some problems with GOP java card. who can help me?

    hello, all
    I am going to install my cap file into Global Open Platform Card( S1-TiEx-S32J, which uses GP2.0.1) now.
    but, I have failed.
    I use J2SDK1.4.2.10 when I compile the java file.
    And use Java Card 2.2.1 Development Kit when I convert to cap file.
    The sequences of the command / response are below;
    [SEND]00A4040007A0000000030000
    [RECV]611F
    [SEND]00C000001F
    [RECV]6F188408A000000003000000A50D9F6E0A42505042474F317601019F6501FE9000
    [SEND]80500000082021222324252627
    [RECV]611C
    [SEND]00C000001C
    [RECV]0000FFFFFFFFFFFFFFFF0000E1C81BD9C2573DF5AA8EEB95251A95A59000
    [SEND]8482000010A8BD185CD6A3940C83855021A4DFF412
    [RECV]9000
    [SEND]80E60200050000000000
    [RECV]6700
    What was wrong?
    If you are experience with this kind of java card, pls help me.
    with best regards,
    yong lee

    Andalib3,
    There are a couple of options that you have as far as getting this to work. First off go to Control Panel and then to Sounds and Audio Devices (or multimedia depending on the version of windows). In here go to the Audio tab and then under preferred Midi Playback Device you should have a couple of options. There are two settings here that will work:
    ) Microsoft GS Wavetable Synth - This is a very basic midi sound set that is emulated by the OS
    2) Li've! Midi Synth (A or B) - This is the hardware midi synth on the card.
    Make sure one of these is selected as the default midi playback device and then test your games again.
    Jeremy

  • Java Card Security domain

    Hi ,
    According to the visa Open platform architecture, each Java card applet is associated with a Security domain.
    I am using GemXpressoRAD211 toolkit for developing Java Card applets.
    In the Gemxpresso211IS card, the default security domain is the Card Manager, whose AID is A0 00 00 00 03 00 00 . It is basically the card issuer security domain.
    When I install an applet to the card , the Card Manager is assumed to be the associated security domain .
    My questions are....
    1.
    How can I associate my applet to application provider security domain rather than the card issuer security domain? Form where Do I get this security domain ? Do I need to write my own security domain, or some body else provide it ?

    there's a card issuer, with its ISD
    then there's another company who wants to have ability to install/remove some applets on this card
    we create another SD for this company and "delegate" some limited capabilities to manage the contents of the card
    read about the delegated managament in GP
    regards
    Kuba

  • Where can I find a Java Card Manufacturer?

    I'm looking for a java card manufacturer who has card readers? Can anyone help?
    Thanks,
    g.

    Well,
    Basically there are two implementations that I know about - one from Infineon and one from Philips. I've heard something bout STS but cant get them anywhere.
    If you need some cards for evaluation only - the best way is to contact IBM for their tools - you will get CD and some sample cards with JCOP on it. This is acctually Philips implementation and it works great, additionally, tools are for free.
    If you need more cards (starting from 10K) for some real application - just tell me where you are, there are quite few card manf. in the world.
    (some of them are delivering smaller quantity, like 100, not the case with those Joseph named)

  • Manually upload .cap file on a java card

    Hi
    I wonder how to manually upload a .cap file on a java card. I do know that it must be an or more APDUs that contain the file and so on.
    What I wonder is how to convert a .cap file into a byte array (byte array that on-card installer can read and understand) without using JCOP or any other tools? Does (must) this array have a special format or something?
    I am interested in the process of taking a.cap file and convert it to byte array (nothing else).
    Thanks in advance!
    /Lyudmila

    The .cap file uploading mechanism depends if you have a java card or a GlobalPlatform card.Java Card cards are GlobalPlatform based.
    If you have a java card you can use the same mechanism that it is used with Cref (see Java Card Kit - Development Kit - Chapter 11): .cap file is divided in n apdus, one or more (if a component not fit in one apdu, for example method component) for component (first:Header.cap, second:directory.cap, third:import.cap, etc).
    If you use a GlobalPlatform card, the mechanism is more complex:
    first you have to create a session using a specific protocol (SCP01, SCP02, etc) through INITIALIZE UPDATE and EXTERNAL AUTHENTICATE commands, then an INSTALL FOR LOAD command and n LOAD commads as they are necessary.
    To use GlobalPlatform mechanism, see GlobalPlatform Specification 2.1.1.The JCRE spec does not define the applet loader and CREF has a basic version of an applet loader that is not GP compliant, but this is not the Java Card standard. To load onto any physical Java Card you will need to follow the GlobalPlatform specification.
    - Shane

  • Can any one suggest me how to tactile this new technology JAVA CARD

    HI
    I AM C.NAVEEN . I KNOW BASICS OF JAVA. AND STUDIED DOCUMENTATION OF JAVA CARD , AND UNDERSTAND THE CONCEPTS REGARDING THAT. BUT HOW TO CHOOSE A CARD AND A CARD READER .
    AS I AM NEW TO THIS TECHNOLOGY . HOW CAN I MOULD MY SELF TO BE A PROGRAMMER FOR JAVA CARDS .....................
    Thanks
    Naveen.C

    Because the Windows 8 is a client operating system.  To make BI4.1 Server work on windows, you'll have to make sure you install it on versions supported as per the PAM below:
    SAP BusinessObjects BI 4.1 Supported Platforms (PAM)
    Please refer page #3 for server operating system, where you will be installing the server software and for all the client tools - refer page #4.
    Make sure you install the server and the client tools as per the supported OS types and versions respectively.

  • What is your Java Card?

    Hi all,
    I just wanted to get a feel of what you folks are using as part of your JC development and deployment.
    I am particularly interested in what java card/smart card product you are using.
    Please response. Thanks. -KL

    CreditCuriousity wrote:
    MOMTIMES7 wrote:
    CAPTOOL wrote:
    Amex SimplyCash.That's on my "goal card list" If I was to apply for this do I just have to have an EIN #?  I am incorporated for 1099 purposes, but haven't used my company in a LONG time...  What are the restrictions for applying for the Simplycash from amex?  Do they use the term business loosely ?  Sorry not meaning to side track this.You can use your SS number. That's what I did, even though I have a federal tax number. Restrictions are basically nil. They operate on, and approve based on personal credit. Go for it! ETA: And they approved me for $10K right out of the gate. My highest limit!

  • Java Card for GSM and PKI

    Hi,
    I am researching the feasibility of a project that is basically a SIM card the will also do cashless payments and will be able to digitally sign transactions and/or documents.
    Basically a Java card that has the following:
    1. GSM functionality (i.e. compliant to GSM standards 1111, 1114 and so on)
    2. Has hardware for PKI support (elliptic curve, for the shorter keys)
    3. Supports PKCS, so PC-based interface can talk to the card (somehow) and ask it to sign documents
    Is there a card on the market that can do this?
    Unfortunately I could not dig much information what is on offer by manufactures.

    Contact the sales departments of the manufacturers (Giesecke&Devrient (G&D) and Oberthur, and maybe also NXP). They will refer you to the distributor/reseller for your area, through whom you can establish an NDA with the manufacturer and get access to the specification documents.
    Adriaan

  • Default applets on brand new java card and spec support

    Hi,
    I have got brand new java card reader and real java card.
    I want to just access it using Java and see if I can access stuff on the java card before i go ahead with next things.
    I was thinking of just doing select on some applet which is present on brand new java card by default.
    1. Does anyone know if any default applet is present on java card?
    2. If yes, AID of that?
    3. Is there any APDU by which I can find out which java card spec that card supports?
    Btw, I am using Java Card 2.2.2 and the card i have should also have same support.
    Edited by: unic.man on Jul 12, 2008 2:11 AM

    >
    1. I know that any smart-card has a universally unique id which can be retrieved pro grammatically. Can you please tell me the APDU/API to retrieve it on Host app side? If not, card side at least?
    I don't know much about unique IDs but basically you've got the ATR which is given to you every time the card is powered on. The ATR identifies a particular family of cards. If you want to identify each card you need to have a look at the GET DATA command (in Global Platform) and especially the CPLC (Card Production Life Cycle). Apparently you can get a unique ID by combining the IC batch identifier and the IC serial number.
    2. I'm also struggling with deploying the app. It is not detecting the default installer applet via apdutool. I found some articles and netbeans plug-in talking about keys to download applet on card. Do you know standard keys/derivated keys to start secured channel?I don't think you can use the JCDK to install an applet on a real card. If you have a JCOP card I advise you to get the JCOP tools. And yes you will need the keys to establish a secure channel but I don't know what the default keys are on a JCOP card.

  • Java card - crd manager selection....

    hi...
    this is very basic, I would like to to know the procedures involved in the selection of card manager in a java card.
    A tutorial link would be useful.

    The Card Manager is defined in GlobalPlatform and is responsible and is a general term for the GP environment, Issuer Secrity Doman and the global PIN. It is the card administration service. In regards to Java Card Runtime Environment, it covers the Installer and the Deletion Manager.
    You can find examples in this forum about the Issuer Security Doman and the global PIN. The GlobalPlatform environment is described in the GP 2.1.1 spec. under section 3.2 .

  • Java Card Manager NetBeans plug-in

    Just to announce, I've uploaded a simple plug-in for NetBeans that provides basic functionality for Java Cards. Send APDU commands to card or simulator, browse content loaded on card, load & install & delete applets, open secure channel... Plug-in follows Open platform specification.
    It has been used with GemXpresso cards (and works well) so there is no experience with other cards, but suppose that the card is OP compliant, it should work ok.
    I have some ideas to improve and to extend it to support full OP/GP specs as well as plug-in for Java Card project type. However, I have no idea about what Sun prepares as tools with JC3.0 (I've noticed that it will be NB plug-ins too).
    http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=10935

    Hello, neinaggar1.
    Well, on NetBeans plug-in portal, I've uploaded Java Card Manager plug-in. This plug-in brings to NetBeans the possibility to communicate (APDU commands, installing applets, etc.) with card or running simulator; no project types.
    In comments on plug-in discussion, i.e. http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=10935 , I've put a link to second plug-in Java Card Project that provides the "project" functionality - new project type (new project type category "Java Card"), code completion, compiling, converting, starting simulator... However, this plug-in is in "beta" stage because it has some unsolved pitfalls - for example, you can provide just one export path for converting and there is a problem with plug-in depedency to internal NetBeans modules so it is strongly dependent on certain ide version (and probably even on its build).
    Check the link above and discussion present there.
    Just a note:
    the access to the functionality Java Card Manager plug-in is from "Service" tab.
    the access to the functionality Java Card Project plug-in is from properties (right click on the project name in project treeview) of existing java card project made by this plug-in or via new project wizard to make a new java card project.
    Edited by: Vlasakcz on Aug 1, 2008 7:24 AM

Maybe you are looking for

  • Translate function

    hi,      How to use Translate function in VC? Please tell me with one exmple.       Points will be given to correct solution. Cheers, Jayant

  • Automate the process in finding the measure from the catalog reports

    Hi Experts! Is there any way to automate the process of finding the measure in the report and replace with new measure? Please let me know if anything that i can use. Actually i am using the OBIEE 11.1.1.5 v of obiee. Thanks, Mani.

  • Urgent - Concurrent Stuck in Running phase

    Gurus, Version: 12.0.4. To import the PO from 3rd party application, I used PDOI. For my testing, I just pushed 3 records into the tables and ran the concurrent Import Standard Purchase Orders. Strange to note that the concurrent is running for 3 day

  • Service Manager will not trigger Run Book

    Hello.  I am fairly new to Service Manager.  I have setup a Service Request to deploy a new VM.  The runbook I have created in Orch runs fine when I test the runbook.  Within Service Manager I made sure that everything was synchronized and that the p

  • ITunes 9 Home Sharing Error (-42408)

    I have a MacBook Pro 17" 2.16GHz, Core Duo, Snow Leapord, iTunes 9.2 that I am trying to turn on Home Sharing. Although I can authorize the MBP, when I try to activate Home Sharing, I get an iTunes Store error (-42408). I NEED to use iTunes 9 because