These classes are closely related to the Security Manager, which was permanently disabled by JEP 486.
https://openjdk.org/jeps/486
Both the SecurityManager and its subclass RMISecurityManager classes are deprecated for removal. They should be removed at the same time.
SecurityException is not deprecated. Its subclass RMISecurityException is ordinarily deprecated. SecurityException may be kept around for other reasons. The reason for the existence of RMISecurityException is that it was thrown by RMISecurityManager. RMISecurityException could be deprecated for removal and possibly removed when RMISecurityManager is removed.
https://openjdk.org/jeps/486
Both the SecurityManager and its subclass RMISecurityManager classes are deprecated for removal. They should be removed at the same time.
SecurityException is not deprecated. Its subclass RMISecurityException is ordinarily deprecated. SecurityException may be kept around for other reasons. The reason for the existence of RMISecurityException is that it was thrown by RMISecurityManager. RMISecurityException could be deprecated for removal and possibly removed when RMISecurityManager is removed.