Java Web Start Authentication Option

亡梦爱人 提交于 2019-12-10 14:59:36

问题


Ok, before you think that this is a simplistic request and that it must be out there; I've done about 2-3 hours of searching with no results. Is there a way to pass authentication information through Java Web Start (javaws) to access a password protected website?

Essentially what I'm working towards is an auto-restart of a javaws application without having to re-implement what javaws does to pull the jar's down and then having to run Java on the downloaded application. I've really been trying to find information on this but no one wants to do the same thing I'm doing (mainly because if you have authentication then you would want someone to authenticate).

The authentication method is basic and I've tried embedding the username/password into the URL to no avail. Any ideas?


回答1:


[aol]Me too. I found this thread as part of my search for the same.[/aol]

The closest that I have found is this wiki-page for a JNLP started trading application. Excerpt:

javaws -J-Djnlp.client.username=YOUR_LOGIN -J-Djnlp.client.password=YOUR_PASSWORD JNLPURL

I still receive a Java-generated error for the application that I'm attempting to use (ATEN KVM-over-IP on Supermicro motherboard), but I see some session-specific junk in the JNLP that changes with each request.




回答2:


Is this discussion useful?



来源:https://stackoverflow.com/questions/2284668/java-web-start-authentication-option

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!