Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Product security  RSS feed

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am developing java desktop application using swing on Linux.
This application will be product for our client.
So application must have some security constrains.
Application should not run at all machines.

I am planning to get local machine's motherboard serial number.
Security constrains will be check based on this serial number.

Please provide me some ideas to secure my application better way.

Thanks.
 
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm curious why you don't want the application to run from certain machines? The normal security model would be to not allow certain users to use the application..
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most probably it is the licensing issue.
Notice the OP stated desktop application.
So I am presuming the requirement is to ensure it is installed and used only on a specific number of machines.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In that case I guess Mboard number is a fairly good place to start, perhaps MAC address might be a bit easier to get to from Java.
 
Niraj Pendal
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, Maneesh.
it is licencing issue. thanks for your reply.

I want my application to run on specific machines.

I want to get motherboard serial number(or any unique serial number of hardware) for checking pirated copy.

Is there any way in java so that i can get this serial number without running external commands.
Please refer following link.
http://www.coderanch.com/t/426976/Java-General-beg...t-motherboard-serial-Number-of

Please tell me other better licensing solution if you have.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Niraj,
Long time back I had done something similar.
I used to check for the "Volume Serial Number" of the drive as the unique identifier.

Like Martijn has suggested, picking the MAC address might be easier than the mother board serial number. You might want to explore that avenue.

Another way of doing this would be through JWS. You can find out the IP of the machine trying to launch the application and process it accordingly. Of course this will not work for dynamic IPs.
 
Niraj Pendal
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Maneesh,

But "Volume Serial Number" and "IP Address" is not good idea i guess for licensing.

Authentication through MAC Address is again fine approach. but again for that i have to use external commands method(same problem for motherboard serial no.).

Is there anyway, so that i can directly get MAC address of local machine directly from java.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out NetworkInterface#getHardwareAddress() You will require 1.6 for this though.
Also found this http://forums.sun.com/thread.jspa?threadID=245711
 
Niraj Pendal
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks all,

I got good support to solve my problem.
 
straws are for suckers. tiny ads are for attractive people.
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!