...
This noncompliant example grants AllPermission
to a the klib
library (klib
). The permission itself is specified in the security policy file used by the security manager. Alternatively, a permission object can be obtained in the code by subclassing the Permission
class (or any subclass like BasicPermission
such as{{BasicPermission}}) in the java.security package
.
...