I am trying to use the SSL FTpClient from Java class inside Lotus Notes Agent like this :
SSLFTPClient ftp = new SSLFTPClient();
The class compiled successfully in Lotus Notes Designer:
I've got the following error when I've tried running the agent:
java.lang.SecurityException
at java.lang.SecurityManager.checkPermission(SecurityManager.java:576)
at COM.ibm.JEmpower.applet.AppletSecurity.checkSecurityPermission(AppletSecurity.java:1305)
at COM.ibm.JEmpower.applet.AppletSecurity.checkPermission(AppletSecurity.java:1500)
at COM.ibm.JEmpower.applet.AppletSecurity.checkPermission(AppletSecurity.java:1437)
at java.lang.SecurityManager.checkSecurityAccess(SecurityManager.java:1692)
at java.security.Provider.check(Provider.java:441)
at java.security.Provider.put(Provider.java:396)
at com.enterprisedt.cryptix.provider.Cryptix.<init>(Unknown Source)
at com.enterprisedt.net.puretls.LoadProviders.init(Unknown Source)
at com.enterprisedt.net.puretls.SSLContext.<init>(Unknown Source)
at com.enterprisedt.net.ftp.ssl.SSLFTPClient.<init>(Unknown Source)
at JavaAgent.NotesMain(JavaAgent.java:31)
at lotus.domino.AgentBase.runNotes(Unknown Source)
at lotus.domino.NotesThread.run(Unknown Source)
Line 31 is actually the line mentioned above.
SSLFTPClient ftp = new SSLFTPClient();
Any ideas ?
Thanks
Mikhail