Solved

Username/password functionality

Posted on 2011-03-08
5
314 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction and Prerequisites This article describes methods for detecting whether a client browser accepts and returns HTTP cookies and whether the client browser runs JavaScript.  Most client browsers will, by default, be configured to use cooki…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

920 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

16 Experts available now in Live!

Get 1:1 Help Now