- Distributed Computing in Java 9
- Raja Malleswara Rao Pattamsetti
- 101字
- 2021-07-02 21:02:35
Running a remote client program
Between the hosts running the server and client programs, there can be a security manager installed. When you run either a server or client program with a security policy, the associated security policy definition needs to be specified with the instructions to grant security permissions to both the server and the client as they run. The following are example policy files to use with the server program:
- For server.policy, the code is as follows:
grant codeBase "file:D://development//eclipseworkspace//CalculateApp//src//remote//" {
permission java.security.AllPermission;
};
- For client.policy, the code is as follows:
grant codeBase "file:D://development//eclipseworkspace//CalculateApp//src//local//" {
permission java.security.AllPermission;
};
推薦閱讀
- Functional Python Programming
- 三維圖形化C++趣味編程
- 0 bug:C/C++商用工程之道
- PHP 7從零基礎到項目實戰
- Backbone.js Testing
- PyQt編程快速上手
- Clojure for Finance
- Learning D3.js 5 Mapping(Second Edition)
- C語言編程魔法書:基于C11標準
- Visual C++程序開發范例寶典
- 開源心法
- 深入理解LLVM:代碼生成
- Mastering Grunt
- Oracle Application Integration Architecture(AIA) Foundation Pack 11gR1:Essentials
- 瘋狂Java講義(第5版)