61 *
62 * </table>
63 *
64 * <p>
65 * Programmers do not normally create JDIPermission objects directly.
66 * Instead they are created by the security policy code based on reading
67 * the security policy file.
68 *
69 * @author Tim Bell
70 * @since 1.5
71 *
72 * @see com.sun.jdi.Bootstrap
73 * @see java.security.BasicPermission
74 * @see java.security.Permission
75 * @see java.security.Permissions
76 * @see java.security.PermissionCollection
77 * @see java.lang.SecurityManager
78 *
79 */
80
81 public final class JDIPermission extends java.security.BasicPermission {
82 private static final long serialVersionUID = -6988461416938786271L;
83 /**
84 * The <code>JDIPermission</code> class represents access rights to the
85 * <code>VirtualMachineManager</code>
86 * @param name Permission name. Must be "virtualMachineManager".
87 * @throws IllegalArgumentException if the name argument is invalid.
88 */
89 public JDIPermission(String name) {
90 super(name);
91 if (!name.equals("virtualMachineManager")) {
92 throw new IllegalArgumentException("name: " + name);
93 }
94 }
95
96 /**
97 * Constructs a new JDIPermission object.
98 *
99 * @param name Permission name. Must be "virtualMachineManager".
100 * @param actions Must be either null or the empty string.
|
61 *
62 * </table>
63 *
64 * <p>
65 * Programmers do not normally create JDIPermission objects directly.
66 * Instead they are created by the security policy code based on reading
67 * the security policy file.
68 *
69 * @author Tim Bell
70 * @since 1.5
71 *
72 * @see com.sun.jdi.Bootstrap
73 * @see java.security.BasicPermission
74 * @see java.security.Permission
75 * @see java.security.Permissions
76 * @see java.security.PermissionCollection
77 * @see java.lang.SecurityManager
78 *
79 */
80
81 @jdk.Supported
82 public final class JDIPermission extends java.security.BasicPermission {
83 private static final long serialVersionUID = -6988461416938786271L;
84 /**
85 * The <code>JDIPermission</code> class represents access rights to the
86 * <code>VirtualMachineManager</code>
87 * @param name Permission name. Must be "virtualMachineManager".
88 * @throws IllegalArgumentException if the name argument is invalid.
89 */
90 public JDIPermission(String name) {
91 super(name);
92 if (!name.equals("virtualMachineManager")) {
93 throw new IllegalArgumentException("name: " + name);
94 }
95 }
96
97 /**
98 * Constructs a new JDIPermission object.
99 *
100 * @param name Permission name. Must be "virtualMachineManager".
101 * @param actions Must be either null or the empty string.
|