According to the Java API documentation ,
RMISecurityManager implements a policy that is no different from the policy implemented by SecurityManager. Therefore, the RMI application must use the SecurityManager class or another SecurityManager implementation for the application instead of this class.
If so, what is the point of having a separate RMISecurityManager class? Are there any situations where they should be used over the SecurityManager?
It makes no sense. If you look at the definition of RMISecurityManager:
public class RMISecurityManager extends SecurityManager { /** * Constructs a new <code>RMISecurityManager</code>. * @since JDK1.1 */ public RMISecurityManager() { } }
. , . , .
Source: https://habr.com/ru/post/1776309/More articles:Do "!" and "zero" give the same result? - objective-ca simple mistake c makes a pointer out of the whole without casting - cAndroid: How to program EAP wifi configuration programmatically? - androidDjango and thread security - pythonSpring AOP with anonymous inner classes - javaAndroid programming error - androidпорядок и лимит с суммой ActiveRecord? - rubyfgetc (): Read and save a string of unknown length - cWhat is code injection in .net (as a programming skill)? - .netHow are instances resolved when child containers are used? - castle-windsorAll Articles