Added support for reading certificates from Base64 encoded strings.

This commit is contained in:
dev
2011-06-30 08:05:19 +00:00
parent 7862f7fc8f
commit a3d5cefb3d
3 changed files with 37 additions and 4 deletions

View File

@ -43,9 +43,9 @@ public class JSONInterface{
int srvPort = _conf.getConf("server-port", 7656);
String srvTarget = _conf.getConf("server-target", "jsonrpc");
try {
srvURL = new URL("http://"+srvHost+":"+srvPort+"/"+srvTarget);
srvURL = new URL("https://"+srvHost+":"+srvPort+"/"+srvTarget);
} catch (MalformedURLException e){
_log.error("Bad URL: http://"+srvHost+":"+srvPort+"/"+srvTarget, e);
_log.error("Bad URL: https://"+srvHost+":"+srvPort+"/"+srvTarget, e);
}
session = new JSONRPC2Session(srvURL);
}
@ -84,7 +84,6 @@ public class JSONInterface{
@SuppressWarnings("unchecked")
public static String getEcho(String str) throws JSONRPC2Error{
JSONRPC2Request req = new JSONRPC2Request("echo", incrNonce());
@SuppressWarnings("rawtypes")
Map params = new HashMap();