Solved

Username/password functionality

Posted on 2011-03-08
5
311 Views
Last Modified: 2012-06-27
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?
0
Comment
Question by:allelopath
  • 2
  • 2
5 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 250 total points
ID: 35071904
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
 
LVL 92

Assisted Solution

by:objects
objects earned 250 total points
ID: 35073920
two choices
1. password protect your jnlp
2. incorporate it in the existing application. Have it prompt for username/password on startup.
0
 
LVL 1

Author Comment

by:allelopath
ID: 35084354
>>1. password protect your jnlp
How is this done?
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 250 total points
ID: 35084897
>>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
 
LVL 92

Assisted Solution

by:objects
objects earned 250 total points
ID: 35088181
Depends on what you have available server side, could just use basic authentication, or some php for something more customized
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now