Confusion of JavaPurse APDU Statement   in Demo1.scr?

Hi !!
I am learning APDU
The APDU Statement related to JavaPurse in Demo.scr
// Initialize transaction: Credit $127.82
0x80 0x20 0x01 0x00 0x0a 0x31 0xee 0x33 0x44 0x55 0x66 0x00 0x00 0x00 0x00 0x7F;
In Above statement i know up to 0x0a i.e. length byte
and 0x07(end of the statement)
P1 0x01 is the type of transaction p2 is 0
i.e..I now the CLS,INS,P1,P2,length
but i have confused about how the $127.82
is passed
Where can i get the explanation about the JavaPurse example?
Thx
Urs reply will highly appr.
PSampras

12782 is 0x31ee. a two byte value to hold your credit, each bit being one cent.
i am guess the follow bytes contain the pass phrase?
if you have the source code, just go in take a look at it.
Hi !!
I am learning APDU
The APDU Statement related to JavaPurse in Demo.scr
// Initialize transaction: Credit $127.82
0x80 0x20 0x01 0x00 0x0a 0x31 0xee 0x33 0x44 0x55 0x66
0x00 0x00 0x00 0x00 0x7F;
In Above statement i know up to 0x0a i.e. length byte
and 0x07(end of the statement)
P1 0x01 is the type of transaction p2 is 0
i.e..I now the CLS,INS,P1,P2,length
but i have confused about how the $127.82
is passed
Where can i get the explanation about the JavaPurse
example?
Thx
Urs reply will highly appr.
PSampras

Similar Messages

  • Confusion with a current state of Oracle Identity Management

    I would like to know if anyone has successfully implemented the complete suite of IdM. If yes, please share this experience. I want to clarify the definition of "successful integration". It should include the following:
    - SSO for Partner applications
    - SSO for External (third parties) applications
    - Provisioning and Synchronization
    - Delegated Administration
    - WNA with Kerberos
    - SAML implementation (optional)
    I would appreciate all answers on this subject

    To restart from your initial question, it's quite strange because the components you mention are all included in the AS10g Enterprise Edition or in AS10g Portal, and are perfectly integrated. I know numerous customers which use Oracle Portal, for instance, and leverage on SSO (patner or external), Delegated Administration (DAS) , Synchro with AD server and Windows native authentication, without a single line of specific code. Provisioning is done automatically by DIP in the case of Portal with AD, as well, or with a Human resource system. Even the password synchro can be made betwwen AD and OID (Oracle LDAP)
    Now, it's a sligthy different discussion if we consider the recent acquisitions made by Oracle, and which are sold in the so call : Oracle Identity management 10g.
    OAM (previously Oblix) is a more ambitious product that Oracle SSO.
    OIM (provisioning and identity management) is far more sophisticated than Oracle DIP.
    The goal, for Oracle, is to unify the workflow engine and the Human interface (with ADF). This task is probably on the rails for the next year.
    OVD (previously OctetSting) is an architectural component which allow virtualisation of LDAP server.
    About Federation, OIF allow all existing Oracle Portal customer (using SSO) to rely on SAML tokens in order to trust partners site.
    So, in my opinion, acquisitions oblige to make a substantial effort to unify human interface and make arbitration between some concepts, but it's within the Oracle means.

  • Explaination Of  "create wallet applet" apdu command in wallet.scr

    0x80 0xB8 0x00 0x00 0x14 0x0a 0xa0 0x0 0x0 0x0 0x62 0x3 0x1 0xc 0x6 0x1 0x08 0 0 0x05 0x01 0x02 0x03 0x04 0x05 0x7F;
    0x80 0xB8 0x00 0x00 0x14:=>p1=0,p2=0 and lc=20
    0x08 0 0 -What is the meaning of these codes ,Please explain.
    Please explain in detail.
    Thanks in advance.

    IMHO 0x08 - length of parameters field
    0x0 0x0 0x05 0x01 0x02 0x03 0x04 0x05 - parameters

  • How to wriet AppletTest.scr

    In the sample of Java Card development kit 2.1.2, demo1.scr and ApplicTest.scr are given to test the Applet. How are those files generated? Do I have to write them manually in Hex format? Where can I find relate documentation?

    I think (not 100% sure), this the list of apdu commands to send to the emulator to be able to "play" with your javacard applet.
    Scriptgen creates apdu commands to store your applet in the card.
    But there must be a script to debit or credit values from your purse in the wallet applet for instance.
    Basically, to create it, you need to know what the applet is waiting for and the APDU's commands format...

  • Run the jcwde once and call many APDU scripts simultaneously?

    Hello everybody.I currentrly try to develop an applet and I was wondering if it is possible to run the jcwde tool just once and call many apdu scripts(.scr files).
    For example let says that you create an applet which has functions(INStrunctions) such as:
    1)Verify Pin
    2)Create a Record
    3)Read a Record and e.tc...
    In one window you ran the jcwde tool and you open let say 2 windows.In the first DOS-window you call the APDU script for the verifation of the PIN and in the second window you ran the APDU script which is responsible for creating a record.(but the jcwde is ran just once)
    I will really appreciate any help and asistance.
    Thanks.

    Hello again.I used to run multiple APDU script by using the apdutool and the jcwde once.
    I tied today to run the multiple APDU scripts from the DOS but I had problem.The code of the APDU scripts are :
    //Code of the createNew.scr
    powerup;
    //Select the installer-invoke the on-card installer
    //CLA INS P1 P2 Lc |--- data fields==Lc ----------|
    0x00 0xA4 0x04 0x00 0x09 0xa0 0x00 0x00 0x00 0x62 0x03 0x01 0x08 0x01 0x7F;
    //create Newapplet-From the file jcwde.app(AID) Le=8..PINnumber=0102030405-Declare it here
    0x80 0xB8 0x00 0x00 0x13 0x0a 0xa0 0x0 0x0 0x0 0x62 0x3 0x1 0xc 0x9 0x1 0x07 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x7F;
    //Select Newapplet
    0x00 0xA4 0x04 0x00 0x0a 0xa0 0x0 0x0 0x0 0x62 0x3 0x1 0xc 0x9 0x1 0x7F;
    //powerdown;
    And the code of the verify script is:
    //powerup;
    //Verify user's PIN input
    //Cla INS P1 P2 Lc |--- PIN data from the demo1.scr APDU script--
    0xB1 0x10 0x00 0x00 0x07 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x7F;
    powerdown;
    AS you can see the powerup command included only in the first file and the powerdown command in the second file.
    I executed the files from the DOS command as following:
    c:\>apdutool createNew.scr verify.scr
    But it returns me the message:
    com.sun.javacard.apdutool.ReaderWriterError: Lexical error at line 12, column 13
    . Encountered <EOF> after "//powerdown;".
    com.sun.javacard.apdutool.ReaderWriterError: Card powered down. (0x15)
    The first file createNew.scr is executed properly and then it displays me the above message.
    I also tried to run the multiple scripts with including the powerup and powerdown commands in the both files.No result.
    Have you got idea what is going on?
    Thank you.

  • CASE Statement in Where Condition with Multi Valued parameter in SSRS

    Hi All,
    I am little confused while using CASE statement in Where condition in SSRS. Below is my scenario:
    SELECT
    Logic here
    WHERE
    Date IN (@Date)AND
    (CASE
    WHEN NAME LIKE 'ABC%' THEN 'GROUP1'
    WHEN ID IN ('123456', '823423','74233784') THEN 'GROUP2'
    WHEN ABC_ID IS NULL THEN 'GROUP3'
    ELSE 'GROUP4'
    END ) IN (@GROUP)
    So above query uses WHERE condition with CASE statement from @GROUP parameter. I want to pass this parameter as multi- valued parameter and hence I have used CASE statement IN (@GROUP).
    For @Date one dataset will pass the available and default values and
    for @GROUP parameters, another dataset will pass the available and default values.
    But this is not working as expected. Please suggest me where I am making mistake in the query.
    Maruthu | http://sharepoint-works.blogspot.com

    Hi Maruthu,
    According to your description, I create a sample report in my local environment. It works as I expected. In your scenario, if the selected values from the Date parameter contains some of the Date field values, the selected values from the GROUP parameter
    contains some of GROUPS (‘GROUP1’,’GROUP2’,’GROUP3’,’GROUP4’) and the corresponding when statement is executed , then the dataset returns the corresponding values.
    In order to trouble shoot this issue, could you tell us what results are you get and what’s your desired results? If possible, you can post the sample data with sample dataset, then we can make further analysis and help you out.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How can I read Extended APDU input to the same buffer

    The following is the code I am currently using where inBuffer is an intermediate array of 1000 length. However, I do not want to allocate any buffers at all, and just want to send a command apdu of 1000 byte length and modify it in the code and return the modified buf in the response APDU.
    // Read extended APDU input
    byte[] buf = apdu.getBuffer();
    short bytesRead = apdu.setIncomingAndReceive();
    short dataOffset = apdu.getOffsetCdata();
    // store first chunk in our intermediate byte array <-- how do i get rid of the intermediate array
    Util.arrayCopyNonAtomic(buf, dataOffset, inBuffer, (short) 0, bytesRead);
    // what is the overall length?
    short overallLength = apdu.getIncomingLength();
    short messageOffset = bytesRead;
    if (bytesRead != overallLength){ // otherwise we're finished, all bytes received
         short received = 0;
         do{
                   received = apdu.receiveBytes((short)0);
                   Util.arrayCopyNonAtomic(buf, (short)0, inBuffer, messageOffset, received);
                   messageOffset  += received;
              } while(received != 0);
    * REST OF CODE IN PROCESS METHOD
    I have also tried replacing the above code with the following
    short bytesLeft = (short) (buffer[ISO7816.OFFSET_LC] & 0x00FF);
    if (bytesLeft < (short)55) ISOException.throwIt( ISO7816.SW_WRONG_LENGTH );
    short readCount = apdu.setIncomingAndReceive();
    while ( bytesLeft > 0){
      // process bytes in buffer[5] to buffer[readCount+4];
      bytesLeft -= readCount;
      readCount = apdu.receiveBytes ( ISO7816.OFFSET_CDATA );
    as shown in the javadocs API, but it does not compile.
    This is my command APDU:
    /send 800100000003E8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003E8
    As you can see:
    CLA - 80
    INS - 01
    P1 & P2 - 00
    LC - 0003E8
    Data - 1000 0s
    LE - 03E8
    I am using JavaCard 3.0 with JCOP in Eclipse. How can I read the extended length apdu to the same buffer? I have no problem in returning an extended length response APDU. Thanks a lot for the help.

    You should not call the convenience method setIncomingAndReceive() in your first code. Please find out about the different APDU states. Furthermore, your Applet should implement the ExtendedLength tagging interface.

  • JSP import statement problem

    Hey, I got confused with all import statement with jsp.
    Here is my problem.
    Folder structure:
    C:\Program Files\netbeans-4.1\enterprise1\jakarta-tomcat-5.5.7\webapps\ROOT\WEB\S\A
    This folder contains a.jsp.
    JSP code:
    <%@ page
         language="java"
         import="java.sql.*, MyPackage.DataBase"
         errorPage=". . ."
         contentType="text/html; charset=windows-1251"
    %>
    <%
           Connection connection = null;
         Statement statement = null;
           DataBase dataBase = new DataBase( connection, statement );
    %>
    ...Error message that I get:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    Generated servlet error:
    C:\Program Files\netbeans-4.1\enterprise1\jakarta-tomcat-5.5.7\work\Catalina\localhost\_\org\apache\jsp\WEB\S\A\a_jsp.java:7: package MyPackage does not exist
    import MyPackage.DataBase;
                       ^
    An error occurred at line: 104 in the jsp file: /WEB/S/A/a.jsp
    Generated servlet error:
    C:\Program Files\netbeans-4.1\enterprise1\jakarta-tomcat-5.5.7\work\Catalina\localhost\_\org\apache\jsp\WEB\S\A\a100_jsp.java:147: cannot resolve symbol
    symbol  : class DataBase
    location: class org.apache.jsp.WEB.S.A.a_jsp
           DataBase dataBase = new DataBase( connection, statement );
            ^
    ...How do I import that class so I can use it?
    Do I need to use useBean?
    What do I need to do?
    Thanks

    DataBase class does not extend java.sql.
    I put this into my jsp page
         import="java.sql.*;"
         import="MyPackage.DataBase;" Here is the error message
    Generated servlet error:
    C:\Program Files\netbeans-4.1\enterprise1\jakarta-tomcat-5.5.7\work\Catalina\localhost\_\org\apache\jsp\WEB\S\A\a_jsp.java:7: 'class' or 'interface' expected
    import MyPackage.DataBase;;
    ^
    1 error
    ...

  • Lightroom 2.1 / Camera Raw 5.1 Confusion

    Hello,
    I installed Lightroom 2.1 and when I go to the About menu it shows me correctly, that I have 2.1 but it still says: Camera Raw 4.6.
    I have Photoshop CS3 and when I tried its automatic update option it did not find the newest Camera Raw 5.1.
    I installed it manually.
    But Lightroom still says: Camera Raw 4.6.
    Do I have it or do I not??
    Any suggestions?
    Thanks.
    Tomasz

    "You are going to send JAO into cardiac arrest. Could you just this once; TRUST what he is saying. It is a simple concept, maybe to simple for you to under stand."
    It's a pity that asking a fairly reasonable question here prompts such a patronising reply!
    "Maybe we should try this tack.
    THERE is no ACR in LR:::: None, never was, never will be.
    LR uses the pipeline that was developed for ACR and THATS all.
    That curent pipeline version is 4.6"
    Never said there was, simply asked about the confusion that is the statement in LR and how it relates to PS ACR, i.e. in 'About PS LR' it says 'Camera Raw 4.6'. Now, if you can't see how that causes confusion for users of the 'other' Camera Raw 4.6, then I think it's me who's going to have a cardiac arrest. I think most people would find that totally confusing.
    "NO ACR in LR. Repeat there is no ACR in LR."
    No, but there are statements about Camera Raw versions and there is a cameraraw.dll in the LR folder.
    "Users of PS 3 cannot not use version 5.1"
    There is no confusion about that.
    "PS CS 4 uses versions 5.0 and above. Always will."
    No, it probably won't use version 6.0.
    Many people have posted on various forums about the confusion over Camera Raw in LR, so it isn't obvious. The fact is that although LR doesn't actually use an ACR plugin, there has been an assumption by many users that it does use the same engine as ACR, and the fact that it states a Camera Raw version number within the software adds to that reasonable assumption.
    Up to CS4 the Camera Raw version in LR has been consistent with the latest CS3 ACR version which also adds to the confusion.
    I think one of the main concerns that some users have is that LR will not continue to support newer cameras. I mean for example, when the 5D MkII is incorporated into ACR version 5.x, will LR Camera Raw version be shown as 4.7 or will it revert to consistency and call it 5.x?

  • Calling Java Getter from JSTL Confusion

    In a lot of website tutorials and code examples I have found, I see code that goes something like this
    public class SomeBean {
      private int[] values;
      public SomeBean() {}
      public void setValues(int[] v) {
        values = v;
      public int[] getValues() {
        return values;
    }And then they use the array in a <c:forEach> by calling something like
    <c:forEach var="value" items="${Bean.values}">Now my confusion comes from the statement ${Bean.values}. What is 'values' referring to? Is it somehow bypassing the encapsulation of the object and grabbing the values data member? Is it calling the method 'getValues' without the word 'get' in front?
    Anything to help clarify this would be very much appreciated. Thanks.

    Values is referring to the array of ints that you have.
    It is calling it via the getValues() method defined.
    You can find a reference to the EL expression language here
    See the section entitled "variables" on how it resolves the parent.child.grandchild syntax.
    Basic rules for EL in JSP2.0
    - if the variable is a map, look up a property of the map
    - if the variable is a list, look up an array index within that list
    - otherwise treat it as an object, and look for a relevant javabeans property.

  • Render preview vs Develop View confusion

      Hi,
      I am having a hard time understanding the various "render" and "view" options.
      I just noticed that under "Develop" mode, my modications to the noise reduction settings is not changing the "fit to screen" preview. I can only see the effects by zooming in to 1:1 view. Therefore, I can't see the effect on the whole picture until I export it?!?
      I then went back to Library mode and noticed the "Preview" option. I have been generating "minimal" previews on Import (should I change that?). I now re-rendered these as 1:1 previews and lo-and-behold the changes are now noticeable. But I assume that's a one time event. If I go ahead and change them again, I will have to regerate the previews?
      What's going on here? Noise Reduction and Noise reduction alone doesn't trigger regeneration of the "Fit" preview in develop mode?? Why not??

      Oh man that is not what I wanted to hear. At the very least they should make it a toggle, an option that one can select if one has the CPU to handle it. It's really confusing to assume that "Develop" mode shows the closest rendering to the final output and then have one (but only one!!) of the adjustment tools not update the screen preview (or whatever one calls the view that Develops shows us - "Develop Preview"?).
      Further confusing matters is this statement from beta 2 release:
    "The Develop preview now shows sharpening & noise reduction at less than 1:1 view when using PV2010."
    http://www.lightroomqueen.com/blog/2010/03/23/whats-new-in-lightroom-30-beta2/
      So, it looks like it got removed between Beta2 and Final Release (but only NR; sharpening was kept)?
      So, now I don't fully understand how to estimate the "look" of my output with various NR applied. I understand I can zoom in to 1:1 to get the pixel view but I also like to get a "bird's eye view" of the effect on the whole image. HOw do I do this now without actually outputing to jpg and then checking? Bibble, for one, handles this on the fly. NR effects are rendered immediately.
      Thanks for any advice,
    -alex

  • State of Mosaic project

    Hello.
    I confused a bit with state of Mosaic project - is it present in LiveCycle ES3 suit and merely renamed(I cant find it in ES3)  or it is not part of ES3 and became a sole project(may be open source)?
    Which the most recent version of it, and can it be used outside of  LiveCycle EC2.5? Is there a new version in development or it freezes on 9.5 version?
    Thx.
    Andrew.

    Mosaic is known as the “Composite Application Framework” in ES3

  • Using APDU Tool

    I'm new to this Java Card Technology. I've juz installed J2sdk and the java card development kit onto my RedHat Linux 8.0. I also installed Javax commapi. HOwever when i try to run the sample using this command
    #apdutool demo1.scr > demo.scr.out
    #java.net.ConnectException: Connection refused
    I got the sample file demo1.scr from the java card development kit.
    Will somebody tell me what has gone wrong??
    Your assistance is greatly appreciated.

    hi mate!
    have u run the comnad cref / jcwde in another cmd window?
    this shud run first and then u need to start the apdutool
    hope this helps
    cheers,

  • Network address as the next hop address in ip route statement???

    Hi All,
    I am confused about ip route statements in the following Cisco document.
    Configuring ISDN DDR with Dialer Profiles
    Document ID: 9568
    http://www.cisco.com/warp/public/793/access_dial/ddr_dialer_profile.html
    The statements are;
    ip route 172.22.0.0 255.255.0.0 172.22.80.0
    ip route 172.22.80.0 255.255.255.0 Dialer1
    Why does it use network address as next hop address on the first line?
    And it is a source network address on the second line.
    Please suggest me.
    Thanks a lot,
    Nitass

    When you specify a network address as next hop in a ip route statement, the router does recursive lookup. When it matches a packet for a network other than 172.22.80.0, it will match the router 172.22.0.0 and the route basically says use 172.22.80.0 as the next hop. Now the router looks up the routing table for how to reach 172.22.80.0 and ends up routing via Dialer 1.

  • ItemRender view states

    Hello, I think I found an issue.
    Have any of you heard of a problem with ItemRender's view states.
    Primarily a itemrender custom view state.
    If you set the current state to a custom state, then
    move the mouse over the IR, the hover property sets, and then
    the state shifts to the first defined view state(assuming that
    the state you set is different)
    I have an example project that illustrates.

    Wait a moment.
    This was a problem in the SDK version 4.1 and earlier.
    I installed 4.5 and found this in the IR source:
    protected function getCurrentRendererState():String
            // this code is pretty confusing without multi-dimensional states, but it's
            // defined in order of precedence.
            if (dragging && hasState("dragging"))
      ...... Omited Code ......
            if (hasState("normal"))   
                return "normal";
            // If none of the above states are defined in the item renderer,
            // we return currentState, so we don't change the state just
            // in case the developer put the item renderer into its
            // own custom state.
            return currentState;
    This is very different from the original which returned null.

Maybe you are looking for

  • Hi All,i am currently working on a flex application that will allow the user to change the language

    Hi All,i am currently working on a flex application that will allow the user to change the language within the application from english to Japanese and vice versa. And everything works fine. I am using flex 4.5 We allow the user to save records with

  • 5th gen Ipod not recognized and not charging on any computer.

    Hello I have a 5th gen Ipod with an odd issue. I have an Ihome radio with Ipod dock in which my Ipod charges and plays everthing just fine. I usually just keep it there to charge and only hook up to my computer if I want to buy something or put other

  • Display Total in Group Above Report

    Hello, I have a group above report with month, product_id, product_name as group above fields I have product_entry_date, description, total_qty, actual_qty etc as display fields in my report. I would like to have a total and grand total for total_qty

  • Apple BT keyboard - keys don't respond

    I have read just about every post related to my problem but can't find an answer. I have a Aluminum wireless keyboard that will not pair. It has a green light and is recognized in Bluetooth Assistant but during the pairing process when it asks me to

  • Search functionality in portal

    Hi, We are implementing SAP EP 7.0 for our customer...this portal is only for top level management which contain only BW(3.5) reports as iviews ...these iviews are developed using Visual Composer and some of them are standard business packages(like s