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 |
Constructor and Description |
---|
NamingPermission(String name)
Creates a new permission with the specified name.
|
NamingPermission(String name,
String actions)
Creates a new permission object with the specified name.
|
equals, getActions, hashCode, implies, newPermissionCollection
checkGuard, getName, toString
public NamingPermission(String name)
name
- the name of the permission.NullPointerException
- if name
is null
.IllegalArgumentException
- if name
is empty.public NamingPermission(String name, String actions)
name
- the name of the permission.actions
- should be null.NullPointerException
- if name
is null
.IllegalArgumentException
- if name
is empty.Copyright © 2016 JBoss by Red Hat. All rights reserved.