liveconnect

Applet printing; Applet discards security permission ; Windows7 & Java7

我与影子孤独终老i 提交于 2019-12-22 18:42:47
问题 Using Java Liveconnect able to access printer through applet from browser, for access rights I've added permission java.lang.RuntimePermission "queuePrintJob"; in C:\Program Files (x86)\Java\jre7\lib\security\java.policy file. But still I'm getting the following warning message Using : Java Plug-in 10.9.2.05 ; JRE version 1.7.0_09-b05 Java HotSpot(TM) Client VM But the same signed applet properly works in xp machine with java7. Even if I check Always allow.... , it keeps on showing warning

Metro App - How to detect if logged in with Live ID or Local Account

泪湿孤枕 提交于 2019-12-20 15:25:55
问题 I am building a Metro C# SkyDrive API on top of the Live Connect SDK (http://msdn.microsoft.com/en-us/live/default) - in Windows 8 the user has the choice to SignIn to the Windows 8 machine with either a LOCAL account, or a LIVE account. When using the Live Connect SDK, if I call // assume wlscopes is properly set LiveAuthClient liveAuthClient = new LiveAuthClient(); LiveLoginResult loginResult = await liveAuthClient.LoginAsync(wlscopes); // do some stuff on skydrive liveAuthClient.Logout();

Microsoft Live Connect, REST Access Issue

烈酒焚心 提交于 2019-12-13 16:37:31
问题 I'm trying to access Microsoft LiveConnect from a Java webapp. And I have a problem of getting tokens. The problem is following: I followed the Authorization code grant flow as indicated in http://msdn.microsoft.com/en-us/library/live/hh243647.aspx#authcodegrant LiveConnect does redirect user-agent (browser) to my server with a URL of the following format http://contoso.com/Callback.htm?code=AUTHORIZATION_CODE then my web-app issues a REST (POST request) to LiveConnect with the following

Handle see-other-host in smack

懵懂的女人 提交于 2019-12-11 18:48:12
问题 I'm trying to use smack in order to connect to Microsoft's Xmpp Msn api. Last april they made a change in their implementation which forces clients to implement the "see-other-host" xmpp specification. When I try to connect to "xmpp.messenger.live.com" I get stream:error (see-other-host) at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:260) at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43) at org.jivesoftware.smack.PacketReader$1.run(PacketReader

Can a java applet manipulate the HTML page containing it?

≯℡__Kan透↙ 提交于 2019-11-29 12:17:51
I wanted to know if I can write something on the HTML page containing my Java applet from within the applet. More generally, what interactions are possible between these two? Thanks. From within your java applet // object to allow applet to invoke Javascript methods protected static JSObject appletWindowJSObject = null; appletWindowJSObject = JSObject.getWindow(this); //Call your javascript method on the page and pass it something appletWindowJSObject.call("myJavascriptMethod", "This is what I am passing"); You can then use javascript to manipulate the html page as usual. May also need to

Can a java applet manipulate the HTML page containing it?

孤街浪徒 提交于 2019-11-28 05:54:05
问题 I wanted to know if I can write something on the HTML page containing my Java applet from within the applet. More generally, what interactions are possible between these two? Thanks. 回答1: From within your java applet // object to allow applet to invoke Javascript methods protected static JSObject appletWindowJSObject = null; appletWindowJSObject = JSObject.getWindow(this); //Call your javascript method on the page and pass it something appletWindowJSObject.call("myJavascriptMethod", "This is

access denied (java.net.SocketPermission 127.0.0.1:8080 connect,resolve)

我是研究僧i 提交于 2019-11-27 14:07:11
I have a Java Applet inserted on a simple HTML page located at http://localhost:8080/index.html : <applet id="applet" code="SomeCode.class" archive="lib.jar" Width="1" Height="1"></applet> The Java Applet has a method that looks similar to the code below: public void PostStuffToServer() { String server = "http://localhost:8080/PostHandler.ashx"; URL u = new URL(server); URLConnection con = u.openConnection(); con.setDoOutput(true); con.getOutputStream().write(stream.toByteArray()); con.connect(); } When I execute the applet code from JavaScript like so: obj = document.getElementById('applet');

access denied (java.net.SocketPermission 127.0.0.1:8080 connect,resolve)

孤街浪徒 提交于 2019-11-26 16:36:26
问题 I have a Java Applet inserted on a simple HTML page located at http://localhost:8080/index.html: <applet id="applet" code="SomeCode.class" archive="lib.jar" Width="1" Height="1"></applet> The Java Applet has a method that looks similar to the code below: public void PostStuffToServer() { String server = "http://localhost:8080/PostHandler.ashx"; URL u = new URL(server); URLConnection con = u.openConnection(); con.setDoOutput(true); con.getOutputStream().write(stream.toByteArray()); con.connect