< prev index next >

src/jdk.jdi/share/classes/com/sun/jdi/JDIPermission.java

Print this page
rev 17275 : 8181417: Code cleanups in com.sun.jdi


  63  * </table>
  64  *
  65  * <p>
  66  * Programmers do not normally create JDIPermission objects directly.
  67  * Instead they are created by the security policy code based on reading
  68  * the security policy file.
  69  *
  70  * @author  Tim Bell
  71  * @since   1.5
  72  *
  73  * @see com.sun.jdi.Bootstrap
  74  * @see java.security.BasicPermission
  75  * @see java.security.Permission
  76  * @see java.security.Permissions
  77  * @see java.security.PermissionCollection
  78  * @see java.lang.SecurityManager
  79  *
  80  */
  81 
  82 public final class JDIPermission extends java.security.BasicPermission {

  83     private static final long serialVersionUID = -6988461416938786271L;

  84     /**
  85      * The {@code JDIPermission} class represents access rights to the
  86      * {@code VirtualMachineManager}
  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.
 102      * @throws IllegalArgumentException if arguments are invalid.
 103      */


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