The permission classes encapsulate the access to system resources. Table 26-1 describes the basic Java built-in permissions. There are many more classes (not only in the security package) that provide specific functionality, such as java.io.FilePermission for file permissions.
Recall that permissions are usually compared against each other. The implies method is crucial because it allows for this comparison to happen. For instance, if you have permission to write to a file, it implies that you can read it. That is, java.io.FilePermission("/myfile.txt", "write") implies java.io.FilePermission("/myfile.txt", "read") .
Java Security Solutions ISBN: 0764549286
EAN: 2147483647 Year: 2001
Pages: 222 Authors: Rich Helton, Johennie Helton
flylib.com © 2008-2017. If you may any questions please contact us: flylib@qtcs.net |