Username/password functionality

Suppose I have a Java application available through Java Web Start. and then suppose I want to have username/password access to the application. What would be the best way to implement this? Would I incorporate it into the existing application? I could not make it a separate Java application because the server cannot be guaranteed to have Java on it. Would it be best to use something completely different? PHP?
LVL 1
allelopathAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
CEHJConnect With a Mentor Commented:
Bear  in mind that webstart is a client-side thing. Unless the credentials are kept apart from the application itself, they can't be kept secure. You could authenticate by contacting a server and checking the credentials entered on the client
0
 
objectsConnect With a Mentor Commented:
two choices
1. password protect your jnlp
2. incorporate it in the existing application. Have it prompt for username/password on startup.
0
 
allelopathAuthor Commented:
>>1. password protect your jnlp
How is this done?
0
 
CEHJConnect With a Mentor Commented:
>>I could not make it a separate Java application because the server cannot be guaranteed to have Java on it.

If that's the case, then you need to set up authentication on the web server itself, and that would depend on the server. For Apache:

http://httpd.apache.org/docs/2.0/howto/auth.html
0
 
objectsConnect With a Mentor Commented:
Depends on what you have available server side, could just use basic authentication, or some php for something more customized
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.