java web start blocked application - java

I wrote a javaFx app and i want to run it through network so i use java web start
but when i launch my jnlp file i've got this error :
BTW, i was google this problem and one solution was add url to the exception list so i don't want all users to modify their java security ,
Is there any other way ?
So, i've used IntelliJ for creating jnlp and test both self signed and signed by key

Related

reading logs and displaying them on a web browser using Java

I have logs in folder /home/a/b (located in a remote server)
I want to display logs in my web browser using Java. To get data in the folder /home/a/b and to display them on my web page, what are some methods(API) I can use?
The simplest approach I can imagine is using a SSH API like JSch,
but I don't know how performatic this is.
Anyway, here goes a good example:
https://stackoverflow.com/a/9019095/7528396
Note that you can read the remote file and render line by line.

Run Google Script from Java app using API, issues with authentication

I have created a dummy script to avoid scope issues when trying to run it from Java code. Then, I check advanced google services under resources and go to the API console to try to deal with the credentials.
I can see 'Apps Script' credentials have been already created for me. When I try to set the redirectURI to point an endpoint I am exposing and then save, I get an error message saying I have no rights to perform the action.
Is there any code example to run google scripts from java? I have tried the tutorial but it is not focusing in the authorization. I have been so far able to create the script from java code with the token I get from credentials I have created, but not to run the scripts.

Can you get Windows (AD) userid in JSP (Firefox & IE)?

We are in the process of developing a JSP based Web application. This application needs the logged in user ID from the local PC (Windows / Ubuntu?)
This can be achieved with the help of VBScript on the but unfortunately this solution will work only on Internet Explorer
Are there any ways to get the Windows (AD) user ID in Firefox as well as IE using JSP?
My requirement is very simple. I will store a list of User ID's on my Web application (XML file preferably) and will verify against the request and if the logged in user on Windows matches my list, the user can use my application.
This is a very simple application and the user base is very minimum.
Setup: Apache Tomcat v7.x, JSP
This question may have been asked many times but I still don't see a proper way to do this
I guess what you are looking for is Windows Authentication. Tomcat has built-in support for what you want.

Remember SmartCard PIN using Java Applet for accessing Keystore

I am able to access to a SmartCard with a Java Applet (embedded) using MS CryptoAPI and PKCS#11 (registering the provider with the .dll). I can use both, but right now I'm using the CryptoAPI one for having an easier support for all keyboards/Windows versions:
keystore = KeyStore.getInstance("Windows-MY");
keystore.load(null,null);
I'm using Javascript to comunicate with Java to sign some operations in a web application I am developing.
The default use case is just what I need:
I get/load the Keystore
I try to sign something, it ask for the PIN and once introduced it remembers until the end of the session (when I extract the SmartCard or cache timeout).
The problem is: It's an embedded Applet. When I sign something in web page A and then I go to web page B (through a link or redirect, for ex.), the Applet is destroyed/created (just like the JVM) and the session is lost so I have to introduce again the PIN. This does not happen if I do not leave/reload the actual web page, of course.
Questions: Is there some way to reuse the session/Applet/JVM programmatically? or loading the Keystore in a way that can avoid this problem?
Possible workaround solutions I already know:
Free floating Applet. I can't, it has no GUI and I need to comunicate with JS...
Web in a frameset/iframe. Dirty.
Ajaxify the web (just one page + all operations in Ajax + some kind of history JS plugin or PushState). This is the solution I like more but requires some refactoring.
I ended up doing it in a completely different way: Creating a client desktop app for the signature. This app is installed in all desktop clients (this is ok for me because it's a corporate environment).
This new app listens to a port with a HttpListener. I connect from the web via javascript (jsonp), send the string to be signed, and it returns the js callback with the result signed.
It now remembers the PIN because it does not lose the session.
And, therefore, do not need Java.

Android Signed Apps

I am trying to publish an app which can be used by other applications (meaning others apps can invoke my application to do some service for them). However I see that when I sign my app using my default.keystore and other application (who want to communicate with my app) which are signed by some other default.keystore cannot communicate or invoke my app.
If both my app and other app are signed with same keystore they are able to communicate.
Can you someone please guide me how can I sign an application and let other signed app invoke it?
if you are using eclipse try this...
right click your project ,select Android Tools and select Export Signed application package
Then select *create new key store.*give all the details and do as described.

Categories

Resources