Name
AllPermission
Synopsis
This class is a
Permission
subclass whose implies(
)
method always returns true
. This means that code
that has been granted AllPermission
is granted all
other possible permissions. This class exists to provide a convenient
way to grant all permissions to completely trusted code. It should be
used with care. Applications typically do not need to work directly
with Permission
objects.
Figure 14-2. java.security.AllPermission
public final class AllPermission extends Permission { // Public Constructors public AllPermission( ); public AllPermission(String name, String actions); // Public Methods Overriding Permission public boolean equals(Object obj); public String getActions( ); default:"<all actions>" public int hashCode( ); constant public boolean implies(Permission p); constant public PermissionCollection newPermissionCollection( ); }
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.