Class NamingPermission

  • All Implemented Interfaces:
    Serializable, Guard

    public class NamingPermission
    extends BasicPermission

    This class is for WildFly Naming's permissions. A permission contains a name (also referred to as a "target name") but no actions list; you either have the named permission or you don't.

    The naming convention follows the hierarchical property naming convention. An asterisk may appear by itself, or if immediately preceded by a "." may appear at the end of the name, to signify a wildcard match.

    The target name is the name of the permission. The following table lists all the possible permission target names, and for each provides a description of what the permission allows.

    Permission Target Name What the Permission Allows
    setActiveNamingStore Set the active NamingStore

    Author:
    Eduardo Martins
    See Also:
    Serialized Form
    • Constructor Detail

      • NamingPermission

        public NamingPermission​(String name)
        Creates a new permission with the specified name. The name is the symbolic name of the permission, such as "setActiveNamingStore".
        Parameters:
        name - the name of the permission.
        Throws:
        NullPointerException - if name is null.
        IllegalArgumentException - if name is empty.
      • NamingPermission

        public NamingPermission​(String name,
                                String actions)
        Creates a new permission object with the specified name. The name is the symbolic name of the permission, and the actions String is currently unused and should be null.
        Parameters:
        name - the name of the permission.
        actions - should be null.
        Throws:
        NullPointerException - if name is null.
        IllegalArgumentException - if name is empty.