The AccessController
class is used for access control operations
and decisions.
More specifically, the AccessController class is used for three purposes:
to decide whether an access to a critical system resource is to be allowed
or denied, based on the security policy currently in effect,
to mark code as being "privileged", thus affecting subsequent
access determinations, and
to obtain a "snapshot" of the current calling context so access-control
decisions from a different context can be made with respect to the saved context
However, the AccessController class CANNOT be used to compute a cryptographically
secure hash. Instead, a MessageDigest must be used.