javax.realtime
Class RealtimeSecurity

java.lang.Object
  |
  +--javax.realtime.RealtimeSecurity

public class RealtimeSecurity
extends java.lang.Object

Security policy object for real-time specific issues. Primarily used to control access to physical memory.


Field Summary
private static boolean accessPhysical
           
private static boolean setFactory
           
private static boolean setFilter
           
private static boolean setScheduler
           
 
Constructor Summary
RealtimeSecurity()
          Create a RealtimeSecurity object.
 
Method Summary
 void checkAccessPhysical()
          Check whether the application is allowed to access physical memory.
 void checkAccessPhysicalRange(long base, long size)
          Check whether the application is allowed to access physical memory within the specified range.
 void checkSetFactory()
          Check whether the application is allowed to set factory objects.
 void checkSetFilter()
          Check whether the application is allowed to set filter objects.
 void checkSetScheduler()
          Check 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
 

Field Detail

accessPhysical

private static boolean accessPhysical

setFactory

private static boolean setFactory

setScheduler

private static boolean setScheduler

setFilter

private static boolean setFilter
Constructor Detail

RealtimeSecurity

public RealtimeSecurity()
Create a RealtimeSecurity object.

Method Detail

checkAccessPhysical

public void checkAccessPhysical()
                         throws java.lang.SecurityException
Check whether the application is allowed to access physical memory.

Throws:
java.lang.SecurityException - The application doesn't have permission to access physical memory.

checkAccessPhysicalRange

public void checkAccessPhysicalRange(long base,
                                     long size)
                              throws java.lang.SecurityException
Check whether the application is allowed to access physical memory within the specified range.

Parameters:
base - The beginning of the address range.
size - The size of the address range.
Throws:
java.lang.SecurityException - The application doesn't have permission to acess the memory in the given range.

checkSetFilter

public void checkSetFilter()
                    throws java.lang.SecurityException
Check whether the application is allowed to set filter objects.

Throws:
java.lang.SecurityException - The application doesn't have permission to set filter objects.

checkSetScheduler

public void checkSetScheduler()
                       throws java.lang.SecurityException
Check whether the application is allowed to set the scheduler.

Throws:
java.lang.SecurityException - The application doesn't have permission to set the scheduler.

checkSetFactory

public void checkSetFactory()
                     throws java.lang.SecurityException
Check whether the application is allowed to set factory objects.

Throws:
java.lang.SecurityException - The application doesn't have permission to set the factory.