Question

J2ME client authentication

Asked by: prodev_mstars

We're building mobile payment solution using J2ME in client side.
How we can we create signature in client side so the server have no doubt that the client is the authorize one.
Please advise.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2007-11-07 at 03:49:53ID22944284
Tags

j2me

,

client

,

authentication

Topics

Java 2 Micro-Edition (J2ME)

,

Encryption for Network Security

Participating Experts
3
Points
500
Comments
20

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. j2me on smartphones
    is it possible to use j2me programs on smartphones??if yes how??
  2. Nokia J2ME vs Sun J2ME
    what's the difference in the API's of Nokia's J2ME and sun J2ME
  3. J2ME GIF Images
    Anyone know of any 3rd party J2ME classes that support GIF images? More specifically, I would like to read a GIF image off of a HTTP server.

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: qasitouchPosted on 2007-11-07 at 03:59:20ID: 20231271

what kind of payment ??
cradit card or anything else ?

please give me little detail about your problem, so i can give you exact answer.

Kind Regards,
qasitouch.

 

by: prodev_mstarsPosted on 2007-11-07 at 18:18:50ID: 20238750

payment by debit.
Connect to bank backend system.
What I need to know is how the server know that the client that request is the authentication (authorize) one.

 

by: qasitouchPosted on 2007-11-07 at 20:24:54ID: 20239178

its very simple.

when you use http connection to conect to your server, pass the parameter in url string as follows

http://myserver?athentication=true

where athentication is a parameter.

now about authentication, when user submits the money/transaction  he has made, return a parameter to your mobile client, where tht mobile/client will save this information in RMS (mobile database) and when he needs to conect to server, he will add that information to server url.

hope you got ma point.

kind regards,
qasitouch.

 

by: prodev_mstarsPosted on 2007-11-08 at 03:35:59ID: 20240301

what we need is, each client has unique ID, so when client A request to server, the server could verify that the request come from client A, not from other client that acts as client A.
Then the message can be encrypted by the unique ID as key.
My question is,
- is it possible that we could store the ID in handset or app client without being cracked?
- if not, how will be the best way?

 

by: qasitouchPosted on 2007-11-08 at 04:14:22ID: 20240461

yeh,
i have already told you that you can store your id in mobile.

If you are using J2ME, read RMS, USE RMS (mobile database) will store your id.

read this to know how to use RMS using j2me:
http://www.microjava.com/articles/techtalk/rms2

now when the user login to your service, the application will read the id from the RMS and then send to your service for verification and so on.

and i think your problem is solved now :)

Kind Regards,
qasitouch.

 

by: prodev_mstarsPosted on 2007-11-08 at 23:09:26ID: 20247912

Is there a way unauthorized user could get information, for example application key that we store in RMS? We need to make sure the key could not be read by anyone but our appl.

 

by: qasitouchPosted on 2007-11-11 at 09:21:10ID: 20259692

yeh, use some simple encription to read and write data in RMS and use it as i said.
it will be highly protected and secure.
otherwise u can also store it without encription. its also safe and almoist imposible if anyone can get that information


kind regards,
qasitouch.

 

by: jimmackPosted on 2007-11-11 at 12:00:59ID: 20260350

I wouldn't be too sure about that.

I'm not certain of the best way to progress with this, so I'm watching this thread with interest.

However, I can tell you that RMS record stores are not secure.  You need to be extremely careful about what you are going to store in one if this is for a secure banking application.

Anyone with a basic emulator and a bit of knowledge would be able to download the application and view the contents of the record store.  I'm sure that even encrypting the data wouldn't be all that helpful in stopping a determined hacker.  And let's face it, banking applications will attract them.

Jim.

 

by: qasitouchPosted on 2007-11-11 at 20:31:09ID: 20262093

dear, i know all about it too. but u'll have to store it into RMS

as i said before, use some encoding to store the data into RMS.
2nd you must use obfuscation, which will protect your code for certain level. proguard is the best obfuscatuion tool.
read this about obfuscation:
http://techwireless.wordpress.com/2007/08/29/obfuscation-bytecode-optimization/

kind regards,
qasitouch.

 

by: jimmackPosted on 2007-11-12 at 02:17:38ID: 20263111

Here are some thoughts and ideas:

Before allowing the MIDlet to be downloaded, you should perform as many checks as possible to ensure that you are dealing with a genuine client, eg.

1) Check that it is a mobile device that is requesting the download
2) Check the IP address of the request to ensure that it is from a known mobile network operator
3) Verify the user with a password/PIN

When you are convinced that you have a genuine client requesting the MIDlet:

1) Dynamically add a unique identifier to the JAD file (and, if possible for additional security, the JAR file).
2) Create a PIN for the account which should be communicated to the customer in a secure way (eg. post)
3) Digitally sign the MIDlet (this won't protect the value in the JAD file, but would protect it in the JAR)
4) Allow the client to download the app.
5) Consider the use of the MIDlet-Install-Notify attribute in the JAD file to try to confirm that the MIDlet has been successfully received and installed.

General:

1) Of course the MIDlet should be obfuscated.
2) All communication with the server should be encrypted (HTTPS or some other encryption)
3) When communicating with the server, the unique client ID should be backed up with the user-entered PIN.

Jim.

 

by: keyurkarnikPosted on 2007-11-13 at 01:18:01ID: 20270320

The solution given by gasitouch will not do you any good at all!! The solution is very primitive. The data traffic taht goes over HTTP is easily readable on the service provider end. Using simple encryption is insufficient again as it will not serve your purpose as you are looking at monetary transactions with MAJOR repercussions. And obfuscation of code is good, but you cannot afford to add the keys to the code - just imagine the headache when you need to modify it!!

Overall, chuck all the solutions given by gasitouch here, any banks that tries to get you system in place will REJECT it OUTRIGHT as it has security holes all over the place!!!

If you have got GPRS connectivity, then your safest bet would be to use HTTPS. That will result in your required level of data security between the mobile and the bank - but it will not resolve your problem of one user masquerading as another, i.e. you need something to uniquely identify different users.

I have already implemented a complete solution of this kind and it is live with certain banks (over SMS and HTTP)
If you are interested, get back to me!!

And again, do not try to follow the line of thought suggested by gasitouch, you will go in the wrong direction!!

No hard feelings gasitouch, but the solution will hit him in the long run!!

(edited for language -- Chaosian)

 

by: jimmackPosted on 2007-11-13 at 01:46:50ID: 20270434

Whoa there keyurkarnik!

I agree that the "advice" being offered by qasitouch is not going to be adequate for the questioner, but I think you may be overreacting a bit ;-)

Also, please keep the discussion going in this thread.  I'm interested to see where it leads :-)

Jim.

 

by: keyurkarnikPosted on 2007-11-13 at 01:49:59ID: 20270441

Hey Jim, no oeverreactions there... I have seen ppl right here on EE giving advice that they feel is the best, and sometimes just because it happens to be the easier route, the guys take that over the 'correct' ones!!
Thats the only reason for all the emphasis!!

:)

 

by: prodev_mstarsPosted on 2007-11-15 at 01:41:00ID: 20287820

hi keyurkarnik:

Could you explain more about solution that you've implemented?

thanks,

 

by: qasitouchPosted on 2007-11-15 at 04:56:54ID: 20288504

@keyurkarnik
CHILL DUDE


@ question

i still stick with my words and yeh https is better then the http, u can aslo do that. but you will have to use rms and do the same process as i said.

by obfuscating code , encripted data in RMS and using  https you can achieve max. security.
2nd you can also encript your user-id to before transmiting to server, where on your server side use as you want to use, and send ack/nack according to user-id.

talking about security holes, its like that. no. check  PAYPAL api for mobiles/wap. its also using https and url way for athentication. if its so un-secure, why the whole world trust on paypal. and i have used paypal for mobiles too.

anyways this is the most popular and most used and secure scenario used in J2ME and even i developed sevaral applications and user-athentication in this way.

kind Regards,
qasitouch.

 

by: keyurkarnikPosted on 2007-11-15 at 09:34:26ID: 20290733

hey prodev,

I cant give the fulldetails here due to some job constraints.But you may contact me on keyur.karnik@gmail.com.

 

by: jimmackPosted on 2007-11-15 at 14:25:40ID: 20293113

Please keep the discussion in the thread.  If you have clarifications or modifications to make to my suggestions I would be pleased to hear them, but taking the question private goes against the ethos of EE.

http://www.experts-exchange.com/help.jsp#hi99

Jim.

 

by: keyurkarnikPosted on 2007-11-16 at 01:06:17ID: 20296957

Hey, I was not aware about this. I am sorry about the same, but the solution that I have implemented unfortunately has gone under some copyrights for my company, so I cant just post it here. Let me discuss this with my board to check the repercussions!!

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...