Package org.jboss.as.server.security
Class ServerPermission
java.lang.Object
java.security.Permission
java.security.BasicPermission
org.jboss.as.server.security.ServerPermission
- All Implemented Interfaces:
Serializable,Guard
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.
- Author:
- Eduardo Martins
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ServerPermissionThe Server Permission named canAccessImmutableManagementResourceRegistration, which should be used to create aDeploymentReflectionIndex.static final Stringstatic final ServerPermissionThe Server Permission named canAccessModelController, which should be used to retrieve currentServiceContainer.static final Stringstatic final ServerPermissionThe Server Permission named createCaller, which should be used to set currentServiceContainer.static final Stringstatic final ServerPermissionThe Server Permission named getCallerSubject, which should be used to useSecuredServiceRegistry, i.e. invoke its methods.static final String -
Constructor Summary
ConstructorsConstructorDescriptionServerPermission(String name) Creates a new permission with the specified name.ServerPermission(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
-
Field Details
-
CREATE_DEPLOYMENT_REFLECTION_INDEX_NAME
- See Also:
-
GET_CURRENT_SERVICE_CONTAINER_NAME
- See Also:
-
SET_CURRENT_SERVICE_CONTAINER_NAME
- See Also:
-
USE_SERVICE_REGISTRY_NAME
- See Also:
-
CREATE_DEPLOYMENT_REFLECTION_INDEX
The Server Permission named canAccessImmutableManagementResourceRegistration, which should be used to create aDeploymentReflectionIndex. -
GET_CURRENT_SERVICE_CONTAINER
The Server Permission named canAccessModelController, which should be used to retrieve currentServiceContainer. -
SET_CURRENT_SERVICE_CONTAINER
The Server Permission named createCaller, which should be used to set currentServiceContainer. -
USE_SERVICE_REGISTRY
The Server Permission named getCallerSubject, which should be used to useSecuredServiceRegistry, i.e. invoke its methods.
-
-
Constructor Details
-
ServerPermission
Creates a new permission with the specified name. The name is the symbolic name of the permission, such as "getCurrentServiceContainer".- Parameters:
name- the name of the permission.- Throws:
NullPointerException- ifnameisnull.IllegalArgumentException- ifnameis not valid.
-
ServerPermission
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- ifnameand/oractionsare not valid.
-