property PropertyAccess {
check RSystem.observeAllProperties () {
java.lang.SecurityManager security = getSecurityManager ();
if (security != null) {
security.checkPropertiesAccess ();
}
}
check RSystem.observeProperty (key: String) {
SecurityManager security = getSecurityManager ();
// NCheck.debugMessage ("Observe property: " + key);
if (security != null) {
security.checkPropertyAccess (key);
} else {
// NCheck.debugMessage ("SECURITY NULL!");
}
}
check RSystem.setAllProperties () {
SecurityManager security = getSecurityManager ();
if (security != null) {
security.checkPropertiesAccess ();
}
}
}
Naccio Home Page
University of Virginia, Computer Science