public class ServerPermission extends BasicPermission
This class is for WildFly Server'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 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 |
---|---|
createDeploymentReflectionIndex | Create a DeploymentReflectionIndex |
getCurrentServiceContainer | Retrieve current ServiceContainer |
setCurrentServiceContainer | Set current ServiceContainer |
useServiceRegistry | Use SecuredServiceRegistry , i.e. invoke its methods |
The permission name may also be an asterisk, to signify a wildcard match.
Modifier and Type | Field and Description |
---|---|
static ServerPermission |
CREATE_DEPLOYMENT_REFLECTION_INDEX
The Server Permission named canAccessImmutableManagementResourceRegistration, which should be used to create a
DeploymentReflectionIndex . |
static String |
CREATE_DEPLOYMENT_REFLECTION_INDEX_NAME |
static ServerPermission |
GET_CURRENT_SERVICE_CONTAINER
The Server Permission named canAccessModelController, which should be used to retrieve current
ServiceContainer . |
static String |
GET_CURRENT_SERVICE_CONTAINER_NAME |
static ServerPermission |
SET_CURRENT_SERVICE_CONTAINER
The Server Permission named createCaller, which should be used to set current
ServiceContainer . |
static String |
SET_CURRENT_SERVICE_CONTAINER_NAME |
static ServerPermission |
USE_SERVICE_REGISTRY
The Server Permission named getCallerSubject, which should be used to use
SecuredServiceRegistry , i.e. |
static String |
USE_SERVICE_REGISTRY_NAME |
Constructor and Description |
---|
ServerPermission(String name)
Creates a new permission with the specified name.
|
ServerPermission(String name,
String actions)
Creates a new permission object with the specified name.
|
equals, getActions, hashCode, implies, newPermissionCollection
checkGuard, getName, toString
public static final String CREATE_DEPLOYMENT_REFLECTION_INDEX_NAME
public static final String GET_CURRENT_SERVICE_CONTAINER_NAME
public static final String SET_CURRENT_SERVICE_CONTAINER_NAME
public static final String USE_SERVICE_REGISTRY_NAME
public static final ServerPermission CREATE_DEPLOYMENT_REFLECTION_INDEX
DeploymentReflectionIndex
.public static final ServerPermission GET_CURRENT_SERVICE_CONTAINER
ServiceContainer
.public static final ServerPermission SET_CURRENT_SERVICE_CONTAINER
ServiceContainer
.public static final ServerPermission USE_SERVICE_REGISTRY
SecuredServiceRegistry
, i.e. invoke its methods.public ServerPermission(String name)
name
- the name of the permission.NullPointerException
- if name
is null
.IllegalArgumentException
- if name
is not valid.public ServerPermission(String name, String actions)
name
- the name of the permission.actions
- should be null.NullPointerException
- if name
is null
.IllegalArgumentException
- if name
and/or actions
are not valid.Copyright © 2023 JBoss by Red Hat. All rights reserved.