Package org.jboss.as.naming
Class NamingPermission
java.lang.Object
java.security.Permission
java.security.BasicPermission
org.jboss.as.naming.NamingPermission
- All Implemented Interfaces:
Serializable,Guard
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:
-
Constructor Summary
ConstructorsConstructorDescriptionNamingPermission(String name) Creates a new permission with the specified name.NamingPermission(String name, String actions) Creates a new permission object with the specified name. -
Method Summary
Methods inherited from class java.security.BasicPermission
equals, getActions, hashCode, implies, newPermissionCollectionMethods inherited from class java.security.Permission
checkGuard, getName, toString
-
Constructor Details
-
NamingPermission
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- ifnameisnull.IllegalArgumentException- ifnameis empty.
-
NamingPermission
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- ifnameisnull.IllegalArgumentException- ifnameis empty.
-