if user enters pin as 1234 ,he/she should get display as ****
Hi to All
i am developing one banking application with sim toolkit on java card.
i am using getinput for asking pin from customer(user).suppose pin is 1234
But when user types the pin instead of showing **** it prints 1234 as i don't
know how to convert 1234 into ****.
the code for getinput is as follows:
proHdlr.init(PRO_CMD_GET_INPUT, (byte)0, (byte)DEV_ID_ME);
proHdlr.appendTLV(TAG_TEXT_STRING, DCS_8_BIT_DATA, pin, (short)0, (short)pin.length);
proHdlr.appendTLV(TAG_RESPONSE_LENGTH, (byte)1, (byte)10);
proHdlr.send();
What can i do to convert 1234 into **** ?
Thanx in Advance
Warm Regards
Divyesh.
you shall set the command modifier to 0x04.
proHdlr.init(PRO_CMD_GET_INPUT, (byte)0x04, (byte)DEV_ID_ME);
see TS GSM 11.14
some mobile phone will simply hide the input (nothing will be displayed, as for Unix password) or a '*' character will be echoed.
> you shall set the command modifier to 0x04.
>
> > proHdlr.init(PRO_CMD_GET_INPUT, (byte)0x04,
> , (byte)DEV_ID_ME);
>
>
> see TS GSM 11.14
>
> some mobile phone will simply hide the input (nothing
> will be displayed, as for Unix password) or a '*'
> character will be echoed.
Dear kartagos
Thanks a lot of ur response,i have done it by ur reply.
Tell me other specifications like TS GSM 11.14
which would help me in development of my Sim toolkit
application as i am very new to it.
Once again thank you.
Warm Regards
Divyesh.
the TS you should red to be able to develop STK Applets are basically :
> TS GSM 11.14 (the proactive commans)
> TS GSM 11.11 (the SIM card File system)
> TS GSM 03.48 (OTA mechaism to be able to send data remotmy to your Applets using secure SMS, TS GSM 03.40 may be useful to read too)
> TS GSM 03.19 : the Java implementation of the 11.14 specifications
> a very well done document from the SIM Alliance ( @see http://www.simalliance.org/ ) named "Interoperability Stepping Stones"
Kartagos
Dear Kartagos
> > TS GSM 11.14 (the proactive commans)
i have gone through the docs u specified,it helped me a lot in my learnung.
but in my TS GSM 11.14( which i downloaded from net ) i don't find
like that u shold write identifier field of Getinput proactive command(byte)0x04 to hide string which we get through Getinput command.
would u plz give me the url from where i get these type of specifications?
> > a very well done document from the SIM Alliance (
> @see http://www.simalliance.org/ ) named
> "Interoperability Stepping Stones"
these document by simalliance is exceptional.
Thanx in advance.
regards
Divyesh.