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.AllPermissionpublic 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 ( ); } |