Class ManagementPermission

  • All Implemented Interfaces:
    Serializable, Guard

    public final class ManagementPermission
    extends BasicPermission
    This is the security permission that code running with a Java security manager will be verified against when attempts are made to invoke methods in the platform's management interface.

    Instances of this type are normally created by security code.

    Since:
    1.5
    See Also:
    Serialized Form
    • Constructor Detail

      • ManagementPermission

        public ManagementPermission​(String name)
        Creates a new instance of ManagementPermission with the given name.
        Parameters:
        name - the name of the permission. The only acceptable values are the strings "control" or "monitor".
        Throws:
        IllegalArgumentException - if name is not one of the string values "control" or "monitor".
        NullPointerException - if name is null.
      • ManagementPermission

        public ManagementPermission​(String name,
                                    String actions)
        Creates a new instance of ManagementPermission with the given name and permitted actions.
        Parameters:
        name - the name of the permission. The only acceptable values are the strings "control" or "monitor".
        actions - this argument must either be an empty string or null.
        Throws:
        NullPointerException - if name is null.