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.

[704 byte] By [divyesh_atomtecha] at [2007-10-2 5:25:44]
# 1

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.

kartagosa at 2007-7-16 1:27:33 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2

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

divyesh_atomtecha at 2007-7-16 1:27:33 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 3

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

kartagosa at 2007-7-16 1:27:33 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 4

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.

divyesh_atomtecha at 2007-7-16 1:27:33 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 5
Dear kartagos i have found GSM 11.14 version 5.2.0: December 1996,in whichi found the specs which i want.Thanks 4 ur support.warm regardsDivyesh.
divyesh_atomtecha at 2007-7-16 1:27:33 > top of Java-index,Java Mobility Forums,Consumer and Commerce...