Package org.wildfly.core.embedded.spi
Interface EmbeddedModelControllerClientFactory
-
public interface EmbeddedModelControllerClientFactoryFactory for obtaining aModelControllerClientfor use by an embedding process.- Author:
- Brian Stansberry
-
-
Field Summary
Fields Modifier and Type Field Description static org.jboss.msc.service.ServiceNameSERVICE_NAMEOnly for use within the WildFly kernel; may change or be removed at any time
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LocalModelControllerClientcreateEmbeddedClient(Executor executor)Create an in-VM client whose operations are executed as if they were invoked by a user in the RBACSuperUserrole, regardless of any security identity that is or isn't associated with the calling thread when the client is invoked.
-
-
-
Method Detail
-
createEmbeddedClient
LocalModelControllerClient createEmbeddedClient(Executor executor)
Create an in-VM client whose operations are executed as if they were invoked by a user in the RBACSuperUserrole, regardless of any security identity that is or isn't associated with the calling thread when the client is invoked. This client generally should not be used to handle requests from external callers, and if it is used great care should be taken to ensure such use is not suborning the intended access control scheme.In a VM with a
SecurityManagerinstalled, invocations against the returned client can only occur from a calling context with theorg.jboss.as.controller.security.ControllerPermission#PERFORM_IN_VM_CALL PERFORM_IN_VM_CALLpermission. Without this permission aSecurityExceptionwill be thrown.- Parameters:
executor- the executor to use for asynchronous operation execution. Cannot benull- Returns:
- the client. Will not return
null - Throws:
SecurityException- if the caller does not have theorg.jboss.as.controller.security.ControllerPermission#CAN_ACCESS_MODEL_CONTROLLER CAN_ACCESS_MODEL_CONTROLLERpermission
-
-