java.lang.Objectjavax.realtime.RealtimeSecurity
public class RealtimeSecurity
Security policy object for real-time specific issues. Primarily used to control access to physical memory.
Security requirements are generally application-specific. Every implementation shall have a default RealtimeSecurity
instance, and a way to install a replacement at run-time, RealtimeSystem.setSecurityManager(javax.realtime.RealtimeSecurity). The default security is
minimal. All security managers should prevent access to JVM internal data and the Java heap; additional protection is implementation-specific
and must be documented.
| Constructor Summary | |
|---|---|
RealtimeSecurity()
Create an RealtimeSecurity object. |
|
| Method Summary | |
|---|---|
void |
checkAccessPhysical()
Check whether the application is allowed to access physical memory. |
void |
checkAccessPhysicalRange(long base,
long size)
Checks whether the application is allowed to access physical memory within the specified range. |
void |
checkAEHSetDaemon()
Checks whether the application is allowed to set the daemon status of an AEH. |
void |
checkSetFilter()
Checks whether the application is allowed to register PhysicalMemoryTypeFilter objects
with the PhysicalMemoryManager. |
void |
checkSetMonitorControl(MonitorControl policy)
Checks whether the application is allowed to set the default monitor control policy. |
void |
checkSetScheduler()
Checks whether the application is allowed to set the scheduler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RealtimeSecurity()
RealtimeSecurity object.
| Method Detail |
|---|
public void checkAccessPhysical()
throws java.lang.SecurityException
java.lang.SecurityException - The application doesn't have permission to access physical memory.
public void checkAccessPhysicalRange(long base,
long size)
throws java.lang.SecurityException
base - The beginning of the address range.size - The size of the address range.
java.lang.SecurityException - The application doesn't have permission to access the memory
in the given range.
public void checkSetFilter()
throws java.lang.SecurityException
PhysicalMemoryTypeFilter objects
with the PhysicalMemoryManager.
java.lang.SecurityException - The application doesn't have permission to register filter objects.
public void checkSetMonitorControl(MonitorControl policy)
throws java.lang.SecurityException
policy - The new policy
java.lang.SecurityException - Thrown if the application doesn't have permission to
change the default monitor control policy to policy.
public void checkAEHSetDaemon()
throws java.lang.SecurityException
java.lang.SecurityException - Thrown if the application is not permitted to alter the daemon
status.
public void checkSetScheduler()
throws java.lang.SecurityException
java.lang.SecurityException - The application doesn't have permission to set the scheduler.