The PermissionID Class of the com.ms.security package represents objects that are used to identify permission types.
public final class PermissionID { // Fields public final static PermissionID CLIENTSTORE; public final static PermissionID EXEC; public final static PermissionID FILEIO; public final static PermissionID MULTIMEDIA; public final static PermissionID NETIO; public final static PermissionID PRINTING; public final static PermissionID PROPERTY; public final static PermissionID REFLECTION; public final static PermissionID REGISTRY; public final static PermissionID SECURITY; public final static PermissionID SYSSTREAMS; public final static PermissionID SYSTEM; public final static PermissionID THREAD; public final static PermissionID UI; public final static PermissionID USERFILEIO; // Methods public String toString(); }
The members of this class are constants that represent and identify standard system permissions.
Since there is no public constructor for this class, PermissionID objects cannot be directly created. Instead, they can be retrieved using the PolicyEngine.permissionNameToID method.
Some security APIs allow you to pass the name of the permission instead of a PermissionID object. However, the APIs that take a PermissionID object are usually faster than the variations that take permission names. This is because the APIs that take a permission name must first look up the name to map it to the corresponding PermissionID object.