Solved

Username/password functionality

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Send email using HTML and PHP in separate file 5 37
Converting PHP triple des decrypt to c# 9 62
Special characters in a TCPDF 4 23
JSON decode 5 14
This article discusses how to create an extensible mechanism for linked drop downs.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
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…

735 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