Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
+1 vote
3.2k views
in Java FTP by (158k points)
A user recently asked what security permissions are required for edtFTPj/PRO if the security manager is enabled. It seems that hardly anyone actually does this nowadays, but here's a sample java.policy file in case someone needs it. Of course the remote host and local directory would need to be altered:

grant { 
   permission java.net.SocketPermission "localhost:1024-", "listen";
   permission java.net.SocketPermission "edtmobile", "accept,connect,resolve";
   permission java.lang.RuntimePermission "getProtectionDomain";
   permission java.util.PropertyPermission "edtftp.log.level", "read";
   permission java.util.PropertyPermission "edtftp.log.log4j", "read";
   permission java.util.PropertyPermission "edtftp.log.level", "read";
   permission java.util.PropertyPermission "java.class.path", "read";
   permission java.util.PropertyPermission "edtftp.log.cryptix.trace", "read";
   permission java.util.PropertyPermission "edtftp.log.cryptix.debug", "read";
   permission java.util.PropertyPermission "edtftp.log.cryptix.slowdebug", "read";
   permission java.util.PropertyPermission "edtftp.log.puretls.level", "read";
   permission java.util.PropertyPermission "java.home", "read";
   permission java.util.PropertyPermission "user.dir", "read";
   permission java.io.FilePermission "d:\\work\\-", "read,write,delete";
   permission java.security.SecurityPermission "putProviderProperty.CryptixEDT";
   permission java.security.SecurityPermission "removeProvider.CryptixEDT";
   permission java.security.SecurityPermission "insertProvider.CryptixEDT";
};

Please log in or register to answer this question.

Categories

...