• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Product security

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Refer https://coderanch.com/t/426976/Java-General-beginner/Get-motherboard-serial-Number-of for part discussion regarding this topic.
 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
https://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: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Thanks all,

I got good support to solve my problem.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic