- 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;
};
推薦閱讀
- Modular Programming with Python
- Java加密與解密的藝術(第2版)
- JavaScript從入門到精通(第3版)
- HTML5從入門到精通 (第2版)
- Protocol-Oriented Programming with Swift
- Scala for Machine Learning(Second Edition)
- Kotlin開發教程(全2冊)
- 快速入門與進階:Creo 4·0全實例精講
- Android傳感器開發與智能設備案例實戰
- Raspberry Pi Robotic Blueprints
- UML2面向對象分析與設計(第2版)
- Clojure High Performance Programming(Second Edition)
- WCF技術剖析(卷1)
- 寫給青少年的人工智能(Python版·微課視頻版)
- Java程序設計實用教程(第2版)