[jdom-interest] JDOM & security

Niklas Mehner wombat at uni.de
Wed Aug 2 01:46:17 PDT 2000


Hi,

I'm currently using XML to configure components of my application. 
Each component should get access to the information it needs, but not to the whole xml-
file.

Because of element.getParent() every part of the programm, that can access one node of 
the document, can access (and modify) the whole document.

I don't know if I'm the only one having this problem, but I guess this is a general one.

Is it possible to but something like :

SecurityManager security = System.getSecurityManager();
if (security != null) {
  JDOMAccessParentPermission perm = new JDOMAccessParentPermission();
  security.checkPermission(perm);
}

in this method ?

Niklas



More information about the jdom-interest mailing list