Solved

Username/password functionality

Posted on 2011-03-08
5
319 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

734 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