There is an alternative of System.setProperty compatible with Microsoft
It is possible to find source code of SUN Property class, and insert it as
a library for jar file?
I rewrite the following class:
// source of msft/Proprieta.java
//**********************
package msft;
import java.util.Hashtable;
import java.util.Properties;
public class Proprieta extends Properties
{
public synchronized Object setProperty(String s, String s1)
{return put(s, s1);}
//constructors
public Proprieta()
{super(null);}
public Proprieta(Properties properties)
{super(properties);}
}
//**********************
This work, if I use, in the init of main class:
//**********************
try
{
msft.Proprieta p=new msft.Proprieta(System.getProperties());
p.setProperty("javax.net.ssl.trustStore",
"D:\\Siti\\equazioni\\java\\jar\\pwd.jks");
p.setProperty("javax.net.ssl.keyStore",
"D:\\Siti\\equazioni\\java\\jar\\pwd.jks");
p.setProperty("javax.net.ssl.keyStorePassword", "123456");
p.setProperty("javax.net.ssl.trustStorePassword", "123456");
System.setProperties((java.util.Properties)p);
}
catch (Exception e)
{System.out.println("errore: "+e);}
//**********************
N.B. I haven't tested it with signed applet, because I still need understand
Microsoft procedure, but if i use "msft.Proprieta p=new msft.Proprieta();"
for avoid com.ms.security.SecurityExceptionEx in System.getProprieties(),
p.setProperty work as espected.