- 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;
};
推薦閱讀
- Mastering Swift 2
- 用Flutter極速構(gòu)建原生應(yīng)用
- 軟件架構(gòu):Python語(yǔ)言實(shí)現(xiàn)
- Python漫游數(shù)學(xué)王國(guó):高等數(shù)學(xué)、線性代數(shù)、數(shù)理統(tǒng)計(jì)及運(yùn)籌學(xué)
- Python機(jī)器學(xué)習(xí)編程與實(shí)戰(zhàn)
- SharePoint Development with the SharePoint Framework
- Instant Ext.NET Application Development
- Learning SciPy for Numerical and Scientific Computing(Second Edition)
- OpenGL Data Visualization Cookbook
- OpenCV with Python By Example
- Unity 2018 Augmented Reality Projects
- Mastering Apache Storm
- Python面試通關(guān)寶典
- SCRATCH編程課:我的游戲我做主
- 精通Oracle 12c 數(shù)據(jù)庫(kù)管理