Description of Figure Controlling Access to Resources
This image consists of a stack of six rectangles labeled, from top to bottom, as follows:
-
ClassA
-
ClassB
-
FileInputStream:
, wheresm.checkPermission(perm)
sm
is an instance ofSecurityManager
and perm is an instance of FilePermission created by theFileInputStream
constructor -
SecurityManager
-
AccessController
-
Policy
The image also includes a box labeled Authorization Data and a file named abc
.
An arrow points from the Authorization Data box to the Policy
rectangle.
An arrow labeled Access Granted or Denied points from the Policy
rectangle to the abc
file.