This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JNLP and Web Start and the fly likes Autheticated HTTP Post from a Webstart based application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Autheticated HTTP Post from a Webstart based application" Watch "Autheticated HTTP Post from a Webstart based application" New topic
Author

Autheticated HTTP Post from a Webstart based application

Vijay Ayyar
Greenhorn

Joined: Feb 11, 2002
Posts: 3
Hello,
I have small problem.
We have developed a Java/Swin application.
This application collects and stores data on local machine.
When required this application can post data using HTTP to a password protected URL.
(i.e) When invoked fromthe browser this URL asks for a user/password.
To make this authetication configurable from my application I have used the my Autheticator that derives from
java.net.Authenticator Class
At run time it reads the user/password from a properties file and installs threquired authetictation.
After this I open a URL connection and post the data.
This works great when I post the data from the application when I run the application from the DOS Prompt.
But Once the application is downloaded and run Through Webstart , the runtime doesnot take into consideration My autheticator.
It doesnot come into the overridden function
getPasswordAuthentication().
Webstart pops-up its own dialog box and asks for user/password.
Our requirement is that no such dialog box should be shown.
I have also tried the fllowing in vain
1.The security setting in JNLP says all-permissions
2.System.setSecurityManager(null)
I hope you got the problem
I uregenrly need help on this.
 
wood burning stoves
 
subject: Autheticated HTTP Post from a Webstart based application