A question about Java Card API 2.2.1

Hi,I am doing my first project on java card and I have the software installed(java_card_kit-2_2_1, OCF 1.2, j2sdk1.4.1).
java_card_kit-2_2_1 include these package:
java.lang
java.io
java.rmi
javacard.framework
javacard.security
javacardx.crypto
com.sun.javacard.impl
com.sun.javacard.crypto
My question is:
How can I get the export files of the last two package:com.sun.javacard.impl and com.sun.javacard.crypto?
I really need your help and please mail to me.My email is [email protected] you very much.

Hi libin_hailang
The last two packages are not part of the api.
So, you only can use them on the Simulation.
On a real card implementation you will not find these packages.
This may be the reason for the not existing export files .
But if you need them for other purpose you can create them with the converter.
bye.

Similar Messages

  • About Java Card API 2.0

    Dear all,
    I want to get the Java Card API 2.0 but dont know where to get it.
    I go to the web pages of Sun but still cant find it.
    Do some body know where to get it or just have it and be able to send to me ?
    My e-mail is [email protected]
    Thank you very much .
    Angel Wang Taiwan.

    The reason I want Java Card 2.0 API is that
    I want to test something on my card
    because I meet some unkonown problems when I used API 2.1 .
    But now , all problems are fixed .
    So , I will continue to use API 2.1
    However, thank you very much.

  • Some questions about Java card.

    Hello, everyone. I am a rookie in Java card. My major focuses in IC design so I have some questions to ask.
    1) As I understand, Java card technology is just a platform.So the regular processor can be used for Java card? What we need to do is just software?
    2) How to get the Java card license? All the Java card tech file are released to customers. And how much is the license fee?
    3) How much one Java card cost?
    Thanx.

    Hi,
    1) Yes that's right the only think that you have to bother on a JavaCard is the software part. You will have to develop an applet that you will then download and instanciate in your JavaCard.
    2) For any technical specifications and JavaCard SDK, have a look to this URL:
    http://java.sun.com/products/javacard/index.jsp
    Regarding the licensing, yo may find some information at this URL:
    http://www.internetnews.com/dev-news/article.php/70381
    3) The cost of a JavaCard depends on the volume, the card manufacturer. I think, the price of a JavaCard for low volume is from 5 to 10 USD. But you better do some enquiry with a card manufacturer.
    Regards.
    Thomas
    link: http://jaccal.sourceforge.net/

  • Question about Java Persistence API.

    is Java Persistence API a Object-Relational Mapping Framework, or the java Programmer can use this API to do mapping between Java Applicatiion and Relational Database ??

    http://java.sun.com/javaee/overview/faq/persistence.jsp

  • Question about Java's HttpServer: Threading? Backlog?

    Hello,
    I have two questions about Java's HttpServer (com.sun.net.httpserver). From the JavaDoc:
    >
    Management of threads can be done external to this object by providing a Executor object. If none is provided a default implementation is used.
    >
    How can I get information about the default implementation in 1.6.0_13? Do you know the behavior? From my observations, the default implementation uses no Threads, meaning every request is handled in the same Thread, this results in handling the requests to the HttpServer one after another.
    Is this right?
    The second question is about this, also from the JavaDoc:
    >
    When binding to an address and port number, the application can also specify an integer backlog parameter. This represents the maximum number of incoming TCP connections which the system will queue internally. [...]
    >
    When setting the backlog to -1, it uses the systems default backlog. How can I determine the systems default backlog? Can some lines of Java code reveal it (there is no getBeacklog() method)? Or is it up to the Operating System (we use Redhat Linux)?
    Thanks a lot for your help!
    Regards,
    Timo

    How can I determine the systems default backlog?You can't. There is no API for that even at the C level.
    Can some lines of Java code reveal itNo.
    Or is it up to the Operating System (we use Redhat Linux)?Yes. Linux provides a large default. It seems to be at least 50 on most platforms. This is not something you should be worrying about.

  • Question about graphic card

    Question about graphic card
    my friend has Macbook pro 13 with intel HD 3000 he upgraded his ram from 4 to 8gb and his graphic card updated from 384mb to 512mb why ?
    and i have macbook 2010 and i upgraded from 2gb to 8gb and my graphic card didnt upgraded why ? its still 256mb
    can someone till me whats the trick !!!

    You have a Core 2 Duo MacBook and not a  i7 MacBook Pro.

  • Three questions about Java and Ftp

    Hello, i've the following questions about Java and Ftp:
    1- .netrc file is in $HOME directory but i can't access to this directory from java code. The following line producesan Exception (directory doesn't exists)
    FileWriter file = new FileWriter ("$HOME/.netrc");
    2- .netrc file must have the following permissions: -rw- --- --- but when i create the .netrc file the following permissions are on default: -rw- r-- r--, how can i change this permissions? (In java code, i can't use chmod.....)
    3- Are there any way to pass parameters to a .netrc file? If i get to do this i needn't change the permissions because i can't modify or create/destroy this file.
    Thanks in advanced!!!
    Kike

    1- .netrc file is in $HOME directory but i can't
    access to this directory from java code. The
    following line producesan Exception (directory
    doesn't exists)
    FileWriter file = new FileWriter ("$HOME/.netrc");$HOME would have to be replaced by a shell, I don't
    think you can use it as part of a legal path.
    Instead, use System.getProperty("user.home");
    Ok, thanks
    2- .netrc file must have the followingpermissions:
    -rw- --- --- but when i create the .netrc file the
    following permissions are on default: -rw- r--r--,
    how can i change this permissions? (In java code,i
    can't use chmod.....)Yes, you can: Runtime.exec("chmod ...");
    I need to use estrictly the .netrc with -rw- --- --- permissions
    Yes, i can use Runtime.exec ("chmod ..."); but i don't like very much this solution because is a slow solution, am i right?
    3- Are there any way to pass parameters to a.netrc
    file? If i get to do this i needn't change the
    permissions because i can't modify orcreate/destroy
    this file.I don't think so. Why do you need the .netrc file in
    Java at all? Writing a GUI frontend?I want to use automatic ftp in a java program and FTP server, the files and path are not always the same, so i can:
    - modify .netrc (for me is the complex option)
    - destroy and create a new .netrc (is easier but i have permissions problem)
    - use .netrc with parameters but i haven't found any help about it
    Thanks for your prompt reply!!!!
    Kike

  • How to calculate call duration using java card API

    Hi,
    I am developing an application using Java card API. I want to calculate duration of otgoing calls in it. I am trying to start timer at the beginning of call in Call Control event. Can someone kindly check following code of Call control event? Here timerManagement function is sending proactive command for starting timer for 3 hours. Here I am asuming that maximum call will be of 3 hours. In callDisconnect event i can get current value of timer and use it to calculate duration of call. But this scenario is also not working.
    Problem is that during code execution program stuck at send command (proHdlr.send();) of timmerManagement function. I am sending postAsBERTLV command before starting timer so may be reason is that it is not possible to send proactive command while phone is busy.
    But I also cannot send postAsBERTLV after timerManagement function. Because it is mention in specification that "The EnvelopeResponseHandler content must be posted before the first invocation of a ProactiveHandler.send method or before the termination of the processToolkit, so that the GSM applet can offer these data to the ME (eg 9Fxx/9Exx/91xx). After the first invocation of the ProactiveHandler.send method the EnvelopeResponseHandler is no more available"
    Take a look at following code
                     * Method illustrating the use of the Call Control event.
                    private void callControlService() {
                                    /** @todo: Replace following sample code with your implementation */
                                    ProactiveHandler proHdlr = ProactiveHandler.getTheHandler();
                                    EnvelopeHandler envHdlr = EnvelopeHandler.getTheHandler();
                                    ProactiveResponseHandler rspHdlr = ProactiveResponseHandler
                                                                    .getTheHandler();
                                    EnvelopeResponseHandler envRspHdlr = EnvelopeResponseHandler
                                                                    .getTheHandler();
                                    durationCount = 0;
                                     // allow call with no modifications
                                    envRspHdlr.postAsBERTLV((byte)0x9F, (byte)0x00);
                                    // start clock using timer
                                    timerManagement(proHdlr, rspHdlr, (byte) 0x0, timer_id, tempBuffer);
                                    return;
                    }Please help me in this regard
    Thanks
    Yasir

    I am also unable to start timer in call connected event. I cannot send any proactive command while phone is busy. I am using Gemalto development Suite and there simulators (Simulation 2G chain).
    Is it limitation of simulator that you cannot send any proactive command while phone is busy?
    Is there any other work around for getting call duration?

  • Java Card API in Web Applet

    Hi,
    We have a website which uses username/password authentication for authorization for website usage.
    The client wants to add a new level of security by giving access to people using ActiveIdentity Smart Cards.
    We would like to read these smart cards from our login screen. Is there a way to communicate to smart cards by using Java Card API via web pages (maye be usage of applets)?
    Let me know, Its getting critiocal for us.
    Thanks,
    Joy T

    Not IIS nor Apache. We are deploying on Oracle OAS, which internally uses Apache.
    If you can point me to some guidelines to achive it on Apache, that will be great..

  • Two questions about smart cards

    Hi there,
    I've got some problems with my smart card. It's greater than my skills. Here's what I would like to ask you:
    - I'm using GPShell to list all applications. Here's output:
    mode_201
    enable_trace
    establish_context
    card_connect -readerNumber 2
    * reader name SCM Microsystems Inc. SDI010 Smart Card Reader 0
    select -AID a0000000030000
    Command --> 00A4040007A0000000030000
    Wrapped command --> 00A4040007A0000000030000
    Response <-- 6F3D8408A000000003000000A5319F6E2A00030307A006331101004248106DC9D16
    4494232426216716080167260800F39FFFFFFFFFFFFFFFFFFFF9F6501FF9000
    open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4
    f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel
    Command --> 80500000082C0CA152908FA51100
    Wrapped command --> 80500000082C0CA152908FA51100
    Response <-- 00004248106DC9D164493F011CA9A5D5580A96E868152153ED5B1E519000
    Command --> 84820100106B58779A34A2241D444106A6372A9C7C
    Wrapped command --> 84820100106B58779A34A2241D444106A6372A9C7C
    Response <-- 9000
    get_status -element e0
    Command --> 80F2E000024F0000
    Wrapped command --> 84F2E0000A4F00C6DAD6ED94E6034B00
    Response <-- 08A000000003000000079E06A0000000010107000BD276000005AAFFCAFE0001010
    007A0000000620001010007A0000000620002010007A0000000620003010007A0000000620101010
    008A000000062010101010007A0000000620102010007A0000000620201010006A00000015100010
    007A000000003000001000BD276000005AA0403600104010007A0000000035344010007A00000000
    35350010005A000000001010009A00000006203010C0101009000
    OP201_get_status() returned 17 items
    List of applets (AID state privileges)
    a000000003000000        7       9e
    a00000000101    7       0
    d276000005aaffcafe0001  1       0
    a0000000620001  1       0
    a0000000620002  1       0
    a0000000620003  1       0
    a0000000620101  1       0
    a000000062010101        1       0
    a0000000620102  1       0
    a0000000620201  1       0
    a00000015100    1       0
    a0000000030000  1       0
    d276000005aa0403600104  1       0
    a0000000035344  1       0
    a0000000035350  1       0
    a000000001      1       0
    a00000006203010c01      1       0
    card_disconnect
    release_contextmy question is - how to read this information? Could you give me example of using a0000000620001 applet? What is its class code, instruction codes, what can I do with this applet, how to select it in my source code? I would like you to help me with some java code. I just don't understand all those java card issues.
    Any help would be appreciated.
    Cheers

    state means the state of an applet, you can refer to GP 2.1 or GP2.2 for details, here 7 means selectable, 1 means loaded but not installed, neither can it be selected.
    priviliege means the privilieges given to the applet/security domains, applet and security domains have different privilieges, you can also refer to GP2.1 or GP2.2, here except for the first one is a security domain, others are applets
    Thanks god, if these global organization can think more about the programer, there would not be so much trouble in displaying in text but not hex value.
    They should apologize for wasting people's life time on reading massive rules.
    Edited by: Heermosi on Jan 14, 2010 1:01 AM

  • Basic question about accessing card reader from browser

    Hi,
    I am very new to card technology. I have a very basic and general question not directly related to java cards.
    I need to write a web application that allows the user to read a card with a card reader.
    For that I maybe need to write an applet that has to access a native DLL and call methods
    to get the card ID. I already have that DLL (written in Delphi) that reads multi-technology cards.
    Then pass that ID to the application server to retrieve complete information
    about the card holder and display them on the user browser.
    Please could someone guide me on useful resources for that kind of development, for example
    already existing developments, personal experience, design solutions ?
    Thanks.
    Adriano

    Hi Joseph,
    One thing I forgot to tell is that I work with contactless cards and readers.
    Contactless cards use radio frequency. Despite this fact, the problem stays the same. I already have a Delphi DLL that reads contactless cards.
    What I need is a way to retrieve card holder information from a client browser. The card contains a unique ID. My idea is to use an applet that reads that ID on the client-side and then calls a servlet on the server-side to retrieve holder information associated with that ID, i.e. first and last names, and finally displays them on the client browser.
    So the card contains only the unique ID, a database on the server-side contains all other related data.
    Technically the applet has to call the DLL via JNI.
    Do you think that using an applet that way is a good solution, do you see simpler solutions, is there security issues ?
    Thanks.

  • Question about Video Cards on Laptops

     Hi everyone, and sorry if I post this in the wrong area. I own a few computers, some are consider ancient and others are somewhat old but can run Windows XP just fine. I have a question about the computers in the stores today.
    I am looking to invest in a new laptop, possibly a desktop in the near future depending on my budget. The question I have about video cards today is that, I enjoy a good MMO game now and then, I don't expect to play heavy intensive games, just maybe some more advance games. I notice that for one game that I want to play, it requires a video card to have (Shadow Rendering, Vertex and Pixle Shaders). Do the computers today have those as standard for thier video card? Or do I have to invest in a little bit more expensive laptop/desktop. I am willing to invest money for some more RAM, if I need to improve its preformance. The reason I ask is because I have a 4 year old Laptop with a broken keyboard, and I was thinking about just replacing the laptop with a newer one. it has some pretty good specs and runs everything fine, but it can not play certain games because of those missing video requirements. (Current laptop incase someone is curious: 1.5Ghz Celeron M, 1GB memory 64MB video (Shared) ) Thanks to anyone who has the answer to this question. (P.S sorry if everything is scrunched together. for some reason the formatting is wierd on Opera web browser

    Graphics cards have all those standard today... or at least they should unless you get a really cheap Graphics card. The kind of graphics card and processor and other specs of the computer you want to get should depend on what you want to do with it. It also depends on the kind of games you want to play. If you're playing FPS [first person shooter] then you need a really good graphics card and processor. If you're playing something like Diablo 2 or something that's on the lower end of graphics then you just need decent specs. Graphics cards, I suggest something with aGeForce Nividia card... as of today, they are in the 9 series for high-end cards I believe. For processors... get something like Intel Core 2 Duo T9500 or T9600 or the Core 2 Quatros or Extremes. Extremes are intended for hardcore gaming and would be more expensive. For RAM you should have at least 2GB... you can always upgrade that later.
    For laptops my suggestions are:
    $3k+ get a customized alienware
    $2-3 get a customized dell xps, or macbook pro [although if you're gaming i would suggest you dual boot with windows xp or vista]
    $1-2k get a cheaper customized dell, or sony vaio
    under $1k... well I don't know what to say... you can't really get a nice gaming computer for under that price.
    I personally DO NOT like HP computers at all because they are so quirky and have so many problems and break down easily.

  • Questions about Java Servlets and JSP

    Hi,
    I'm a confident Java Programmer (and really enjoy using this language) but am very new to Java servlets and Java Server Pages.
    I have previously worked with Perl on my web projects (simple 'league' style voting pages). I read in my 'Core Java' book that I should no longer use perl or even cgi.
    I need to know more about Java servlets and Java Server Pages so I can make the switch to a 'real' programming language.
    I have a few questions:
    How should I start to learn JS and JSP?
    How applicable will the java knowlegdge I have already be?
    Are JSP common on the world wide web?
    What tools do I need to start? (I currently develop in JBuilder and have Java 1.4.1 Standard Edition)
    Is it likey my web host (and others) will support JSP?
    Thank-you very much for helping a novice get started,
    Regards,
    Paul

    Hi, Steve ...has to be frustrating! But do not despair.
    Let's suppose the servlet it's named MyServlet on package org.servlets
    WEB-INF should look:
    WEB-INF
    classes
    org
    servlets
    MyServlet.class
    web.xml
    web.xml file should have this two declarations:
    <web-app>
      <servlet>
        <servlet-name>MyServlet</servlet-name>
        <servlet-class>org.servlets.MyServlet</servlet-class>
      </servlet>
      <!-- other servlets -->
      <servlet-mapping>
        <servlet-name>MyServlet</servlet-name>
        <url-pattern>/MyServlet</url-pattern>
      </servlet-mapping>
      <!-- other servlets mappings -->
    </web-app>Now, once the container starts (Tomcat?), you should be able to see that servlet in:
    http://localhost:8080/[my-context/]MyServletAnd what my-context is? The web application context. This string should be empty if your're deploying to the root context, otherwise should the context name. In Tomcat, deploying to root context defaults to using webapps/ROOT.
    Sorry for my English, but I felt the need to answer your request. I hope it helps despite my writing.

  • Newbie question on Java Persistence API - Entity Beans

    Hi All,
    I am basically new to Entities and the Java Persistence API. My question is, when using a container managed EntityManager, do I have to manually tidy-up any resources? Say for example, do I have to explicitly close the database connection (if ever I have that ability)? Invoke close() on EntityManager?
    - Pat

    You don't have to. That's what they mean by container managed. The container does it for you.
    In fact you will get an IllegalStateException if you call close on a container-managed EntityManager.

  • Question about Java GSS-Kerberos authentication

    Hi,
    I am new to GSS API. I have a client requirement to use Java GSS Kerberos Authentication instead of using IIS for Integrated Windows Authentication. In IWA, the IE browser automatically picks up the logged-in windows user credentials and passes it to IIS, which authenticates you against Active Directory and returns SUCCESS.
    We are planning to write a Servlet/JSP code on Apache Tomcat on Solaris 10, which uses Java GSS API to do Kerberos Authentication and return SUCCESS to the user. When I look at the examples:
    http://java.sun.com/j2se/1.4.2/docs/guide/security/jgss/tutorials/AcnOnly.html#RunAc
    it says:
    "You will be prompted for your Kerberos user name and password, and the underlying Kerberos authentication mechanism specified in the login configuration file will log you into Kerberos. If your login is successful, you will see the following message: Authentication succeeded!"
    Does this mean that in Kerberos Authentication using Java GSS API, the user will have to enter his windows credentials for authentication? Is there a way for the credentials to be passed from Windows automatically to the API, without user intervention?
    Any links detailing the procedure would be of great help.
    Thanks,
    shetty2k

    We are having a similar requirement from our end. To make situation worst I do not even have an idea about an approach.
    What are the ways that we can use windows credentials to authenticate against IIS with tomcat?
    any help is greatly appreciated.
    R.

Maybe you are looking for