Class PermissionID
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();
}
This class represents objects that are used to identify permission types. 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.
public String toString();
Converts the permission identifier to its string representation.
Return Value:
Returns the string representation of the permission identifier.
- CLIENTSTORE
- The permission identifier representing the permission type that controls access to the client storage APIs. This identifier corresponds to the permission implementation in the com.ms.security.permissions.ClientStoragePermission class.
- EXEC
- The permission identifier representing the permission type that controls the ability to execute applications. This identifier corresponds to the permission implementation in the com.ms.security.permissions.ExecutionPermission class.
- FILEIO
- A permission identifier representing the permission type that controls the ability to perform file I/O operations. This identifier corresponds to the permission implementation in the com.ms.security.permissions.FileIOPermission class.
- MULTIMEDIA
- This identifier corresponds to the permission implementation in the com.ms.security.permissions.MultimediaPermission class.
- NETIO
- The permission identifier representing the permission type that controls networking operations. This identifier corresponds to the permission implementation in the com.ms.security.permissions.NetIOPermission class.
- PRINTING
- The permission identifier representing the permission type that controls the ability to use the printing APIs. This identifier corresponds to the permission implementation in the com.ms.security.permissions.PrintingPermission class.
- PROPERTY
- The permission identifier representing the permission type that controls access to the system properties. This identifier corresponds to the permission implementation in the com.ms.security.permissions.PropertyPermission class.
- REFLECTION
- The permission identifier representing the permission type that controls the ability to use the reflection APIs. This identifier corresponds to the permission implementation in the com.ms.security.permissions.ReflectionPermission class.
- REGISTRY
- The permission identifier representing the permission type that controls access to the system registry. This identifier corresponds to the permission implementation in the com.ms.security.permissions.RegistryPermission class.
- SECURITY
- The permission identifier representing the permission type that controls access to the JDK security APIs. This identifier corresponds to the permission implementation in the com.ms.security.permissions.SecurityPermission class.
- SYSSTREAMS
- The permission identifier representing the permission type that controls the ability to set the system streams. This identifier corresponds to the permission implementation in the com.ms.security.permissions.SystemStreamsPermission class.
- SYSTEM
- A special permission identifier that represents all possible permissions. This identifier does not correspond to a specific permission class.
- THREAD
- The permission identifier representing the permission type that controls threading operations. This identifier corresponds to the permission implementation in the com.ms.security.permissions.ThreadPermission class.
- UI
- The permission identifier representing the permission type that controls access to extended AWT functionality. This identifier corresponds to the permission implementation in the com.ms.security.permissions.UIPermission class.
- USERFILEIO
- The permission identifier representing the permission type that controls access to user-directed file I/O. This identifier corresponds to the permission implementation in the com.ms.security.permissions.UserFileIOPermission class.