public class ControllerPermission extends BasicPermission
This class is for WildFly Controller'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 ControllerPermission
target names,
and for each provides a description of what the permission allows.
Permission Target Name | What the Permission Allows |
---|---|
canAccessImmutableManagementResourceRegistration | Creation of ImmutableManagementResourceRegistration , or invoke one
of its methods |
canAccessModelController | Access a ModelController , or to invoke its methods |
createCaller | Create a Caller with respect to access control decision |
getCallerSubject | Retrieve the Subject associated with a Caller |
getCurrentAccessAuditContext | Retrieves current AccessAuditContext |
The permission name may also be an asterisk, to signify a wildcard match.
Modifier and Type | Field and Description |
---|---|
static ControllerPermission |
CAN_ACCESS_IMMUTABLE_MANAGEMENT_RESOURCE_REGISTRATION
The Controller Permission named canAccessImmutableManagementResourceRegistration, which should be used to create a
ImmutableManagementResourceRegistration , or invoke one
of its methods |
static String |
CAN_ACCESS_IMMUTABLE_MANAGEMENT_RESOURCE_REGISTRATION_NAME |
static ControllerPermission |
CAN_ACCESS_MODEL_CONTROLLER
The Controller Permission named canAccessModelController, which should be used to access a
ModelController , or to invoke its methods. |
static String |
CAN_ACCESS_MODEL_CONTROLLER_NAME |
static ControllerPermission |
CREATE_CALLER
The Controller Permission named createCaller, which should be used to create a
Caller , with respect to access control decision. |
static String |
CREATE_CALLER_NAME |
static ControllerPermission |
GET_CALLER_SUBJECT
|
static String |
GET_CALLER_SUBJECT_NAME |
static ControllerPermission |
GET_CURRENT_ACCESS_AUDIT_CONTEXT
The Controller Permission named getCurrentAccessAuditContext, which should be used to retrieve current
AccessAuditContext . |
static String |
GET_CURRENT_ACCESS_AUDIT_CONTEXT_NAME |
Constructor and Description |
---|
ControllerPermission(String name)
Creates a new permission with the specified name.
|
ControllerPermission(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 CAN_ACCESS_IMMUTABLE_MANAGEMENT_RESOURCE_REGISTRATION_NAME
public static final String CAN_ACCESS_MODEL_CONTROLLER_NAME
public static final String CREATE_CALLER_NAME
public static final String GET_CALLER_SUBJECT_NAME
public static final String GET_CURRENT_ACCESS_AUDIT_CONTEXT_NAME
public static final ControllerPermission CAN_ACCESS_IMMUTABLE_MANAGEMENT_RESOURCE_REGISTRATION
ImmutableManagementResourceRegistration
, or invoke one
of its methodspublic static final ControllerPermission CAN_ACCESS_MODEL_CONTROLLER
ModelController
, or to invoke its methods.public static final ControllerPermission CREATE_CALLER
Caller
, with respect to access control decision.public static final ControllerPermission GET_CALLER_SUBJECT
public static final ControllerPermission GET_CURRENT_ACCESS_AUDIT_CONTEXT
AccessAuditContext
.public ControllerPermission(String name)
name
- the name of the permission.NullPointerException
- if name
is null
.IllegalArgumentException
- if name
is not valid.public ControllerPermission(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.