How to initial pin number of java card by user

Hello,
I want to create Android Mobile Payment application using Java Card. I find the example and tutorial from the internet and I found the Java Card Applet Developer’s Guide and another example. After I read those files and examples, Most of them set pin with assign the fixed value into the code. So, I want to know there is any way to set the pin code by user dynamically.
Moreover, I have one more question. I would like to store the credit card information into secure element on Android Phone. Which APDU command do I need to use ? WRITE BINARY or WRITE RECORD?

Yes - the javascript will provide a quick response to the user without having to go to the server. However its probably a good idea to have a validation in the validation section that validates it before you insert/update/etc. People can turn off javascript in the browser, so a page validation is always a good idea - Now the reality is the way Apex is built a user can't really turn off javascript because most of the buttons invoke javascript to submit the page, but thats another story.
You would code your button to do a URL redirect instead of submit if you want to use the javascript. Like:
javascript:submit();Now I hardcoded a doSubmit('SUBMIT') which is what your button would do, but if you need different request values, you can make it a variable and do it like that:
javascript:submit('CREATE');
function submit(pRequest){
  if(check()){
    doSubmit(pRequest);
}The Oracle side would be something more like this (just pseudocode - read up on the utility packages):
  v_table := apex_util.string_to_table(:P1_SHUTTLE);
  if v_table.count > 10 then
    return(false);
  else
    return(true);
  end if;Arggg - meant string_to_table - not list_to_table

Similar Messages

  • 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.

  • How SDA and DDA works in Java Card?

    Hi Friends,
    I want to know how exactly SDA and DDA works in Java Card technology..
    Yes, i know that SDA (Static Data Authentication) is valid for every transactions, but the key used is always same for every transaction made..
    and DDA (Dynamic Data Authentication) uses dynamic key for every transactions, it means that one key is valid for one transaction..
    But, i'm a little bit confused how this is implemented in Java Card..
    Is it related with SCP01 and SCP02?..
    Please help me regarding this..
    Thanks in advance

    Hi,
    I want to know how exactly SDA and DDA works in Java Card technology..This is an EMV concept and as such is not implemented in Java Card as such. You would have to create an implementation to be able to use SDA and DDA.
    But, i'm a little bit confused how this is implemented in Java Card..
    Is it related with SCP01 and SCP02?..It is not implemented natively in Java Card and are not related to SCP. SDA and DDA are for the EMV card application (card application data updates) and SCP is for the card manager (card content updates). While they could be considered similar concepts, they are not related in a Java Card sense.
    Cheers,
    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.

  • How to retrieve IMSI number of SIM card through MIDP application

    Hello
    Plz. help
    How can I get IMSI number of SIM card?
    I got javax.telephony.mobile.MobileAddress interface which specify method getSubscriptionId().
    How can i use this interface to retrieve IMSI number?
    Thanks

    hi,
    i'm also in need of these details....
    How to retrieve a IMSI number?
    How to intergrate the JTAPI / any new pack with Netbeans / WTK?
    please if any knows reply me soon...
    Thanx in advance....

  • How to improve the performance of java card OS?

    Hi All,
    we are into Java card OS developement. We need some tips for performance improvement of OS.
    1. what are the possible calculations we can do during loading so that we show good performance during operational mode.
    2. Tips in bytecode implimentation.
    Thanks

    Dear Friend,
    Performance term has relative character in Java Card implementation because there is no etalon. CREF is PC simulated software and can not be used for measurements. So for determining card performance only another implementation comparison can be suggested. Few things should be taken in account while card implementation comparison.
    1. Measurement is done by analysis of time consumption by the card to perfrom a command starting from data transfer and ending by status code.
    2. Same bytecode should be used in both samples.
    3. Same transmission rate should be used.
    4. Analysis of similarity of hardware including CPU, persistent memory programming time
    5. To perform that kind of measurement special tool listeting to terminal-smartcard interface is required
    I have no tips to bytecode implementation because bytecode is a thing that is determined by same Sun compiler and Java Card converter. So all are in the same conditions.
    Yours sincerely
    Dmitri

  • 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?

  • How to initialized a variable in java file by taking the value from web.xml

    suppose i declare parameter in web.xml file
    i want to access if from a java file .
    how can i do this . plz help me its urgent...............

    In your Servlet class you can use the getInitParameter("configfile") method.

  • How to get line number in JAVA code?

    Hi,
    What method can I use to return the current line number of my coding?
    Assuming I'm at line 10 and I want to do something like System.out.println("I am at line number " + ????);What method should I use to get "10"?
    Please advise.
    Thank you.

    If you run Java in Dos prompt, a new line of result is displayed at bottom and the screen scroll. There is no line number in that way. Other language like C have something like that.
    If you use Java Swing, you can display with x, y coordinate option but it is graphic mode.

  • How to set required number of days for the user passwords to expire

    How do I set the duration when users are required to change their passwords?  This is an internal control measure to ensure control over users' logins.
    Thanks a lot.

    You can also set the lifetime of a single password dependent on it's "idle" status:
    - Initial password at user creation. (e.g. 5 days)
    - Reset password by admin. (e.g. 1 day)
    - Productive password not used (e.g 91 days)
    .. and the minimum validity of the password, regardless of how often it is used (not idle).
    - Productive password expiration time. (e.g. 90 days)
    You can also manually observe what is going on via report/transaction RSUSR200.
    If you take a look at the documentation on the parameters in the link already provided, you will see the logic and the dependencies between them. The selection fields of RSUSR200 reflect the same.
    How you rate the risk of passwords and these settings, also depends on many other things - most notably how disciplinced admins are at using the password wizard (in my opinion).
    Cheers,
    Julius

  • Re: How to create large number of Oracle R12 EBS users in mass?

    Hi All,
    I know this is quite old thread, but I'm in a situation where I have to create multiple users and attached more than one different responsibilites to use in EBS. Definately fnd_user_pkg this is the package we have to use in loop.
    I'm planning to create one table let's say user_info where it would have mulitple columns like username, password, start_date, end_date, responsibilites etc.(through SQL loader), so my question is how to call this table in loop ?? (I don't have much experience in PL/SQL Coding )
    again one user would be having multiple responsibilites then how that is to be taken care ?
    yours help would be appreciated...
    Thanks,
    Manish

    Search the forum or previous threads (or even Google) and I'm sure you will find many examples.
    https://forums.oracle.com/search.jspa?peopleEnabled=true&userID=&containerType=&container=&q=fnd_user_pkg
    http://only4left.jpiwowar.com/2011/08/fun-with-ebs-api-ii/
    Thanks,
    Hussein

  • How to create an instance (or instances) of the java card applet?

    Here I have a backend, a host application (a terminal)
    and a Java card that needs to be instanced to multiple cards to different users.
    I wonder how you can make instances of Java card applets of different IDs or PINs.

    933351 wrote:
    Yes, I would like to emulate an environment first, Unfortunately I cannot help with this (never really used this tool).
    I'd like to know also how to install them later on real cards.You need something that can perform the secure channel and card content management functions of the GlobalPlatform card specification. A good starting point is GPShell. It provides a simple scripting interface to be able to:
    1) Authenticate with a card with developer keys
    2) Load you cap file(s)
    3) Instantiate any instances you require (you can have multiple instances from a single applet)
    4) Send arbitrary APDU's to the card for testing.
    GPShell has a README text file that is a good reference and there are sample scripts for a number of card types.
    - Shane

  • How do I start developing Java Card?

    I have downloaded java_card_kit-2_2_1and OCF 1.2. Is there any tools require for Java Card development that I missed out? The demo1, demo2 and demo3 was try to run but I still don't understand how do I can create a Java Card Smart Card. I want to develop a Java Card Smart Card for employee to take their attendance. The employee ID will be the a MUST in the Java Card Smart Card.
    Please provide me guidance and help me out. Thank you in advance.

    I�d like to ask you guys where can i buy a Java Card
    compliant smart card in the Web.
    Based on your experience, which is the best one to
    start with? (Gemplus, Schlumberger...)
    Thanks in advance. (All this sounds really exciting)I am also a student and doing a final year project which uses smart card. I am using a Schlumberger (now is known as Axalto) Cyberflex 32K e-gate card and SDK 4.3 (the latest version is 4.5 if i'm not mistaken).. some say that the SDK is a bit buggy.. well, I dont have much choice because that is what my faculty gave me.. I admit that there are some bugs but until now, it doesn't give me too much of a trouble.
    if you intend to buy their smart card, they have a wide range of it.. you can surf the available smart card here: http://www.axalto.com/products/smartcards.asp

  • Which IDE  is best in doing JAVA CARD .....................................

    As Net beans is a Sun recognized .......Most of them use this only....Then how to configure NETBEANS IDE with java card capability...Can any one suggest clear steps in doing this

    DOEACC@VIVS wrote:
    Nwetbeans 6.8 is best for java card development use plugin to install 3.0 java card techThis is a very subjective question. One question to ask yourself is: what Java IDE do I like the best. NetBeans and JC 3 is only good if you don't plan on running your code against a real card any time soon.
    Personally I prefer Eclipse over NetBeans as a Java IDE. You can then use other tools to convert to CAP files and load/install applets. I must admit that the integration with NetBeans is good compared to other free options but the lack of JC 2.2.x is a show stopper for me.
    Like I said, very subjective.
    Cheers,
    Shane

  • How to get number of records in all user tables in one select

    Please advise how to retrieve the number of records in all user tables in one select. I would likt to extract the data to excel file.
    Many thanks,
    Andrew

    You could always analyze the tables:
    declare
    begin
      for X in (select owner, table_name from all_tables
                 minus
                select owner, table_name from all_external_tables) LOOP
          dbms_stats.Gather_Table_Stats(X.Owner, X.Table_Name) ;
      end loop;
    end;
    /Then: Select Owner, Table_Name, Num_Rows from All_Tables ;

Maybe you are looking for

  • Bapi Call using JCO

    Hi all, Please share your views on the below scenario: A WD Java app, deployed on WAS and an iView created in portal, is calling a BAPI and works fine when assigned to the role. Now the same application when viewed directly using http://<host>:<port>

  • MRP related issue

    hi dudes, i am having crucial problem that our process had been configured according to MTS scenario and having manual batch management where the batches for materials created in such a way that will represent the variants of that material. we are no

  • REGARDING PRINTING

    Hi    I have done a program that is print in background for that i use GET_PRINT_PARAMETER using this iam printing its printing correctly but i had a problem printing ie, when i print the character are overlapipng  in case of DOT MATRIX PRINTER it ov

  • I can't find the audiobook I bought with my old iPhone to put it on my new iphone

    How can I put the audiobook I bought with my old iPhone on my new iPhone?

  • Time Capsule and iPhone question

    I recently replaced my Airport Extreme (802.1b/g) with a Time Capsule and went through the standard installation and setup procedure - no problems. I assumed that the TC was operating in 802.11N mode - there did not seem to be an option to set during