Class ReadAuthentication
- java.lang.Object
-
- org.jboss.hal.client.bootstrap.tasks.ReadAuthentication
-
- All Implemented Interfaces:
Task<FlowContext>
public final class ReadAuthentication extends Object implements Task<FlowContext>
Reads attributes from/core-service=management/access=authorization. This is implemented in an extra bootstrap function, because the operation might fail in some corner cases (e.g. when the current user is a host scoped role scoped to a secondary host).
-
-
Constructor Summary
Constructors Constructor Description ReadAuthentication(Dispatcher dispatcher, Environment environment, StatementContext statementContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description elemental2.promise.Promise<FlowContext>apply(FlowContext context)Executes the task.
-
-
-
Constructor Detail
-
ReadAuthentication
@Inject public ReadAuthentication(Dispatcher dispatcher, Environment environment, StatementContext statementContext)
-
-
Method Detail
-
apply
public elemental2.promise.Promise<FlowContext> apply(FlowContext context)
Description copied from interface:TaskExecutes the task.- Specified by:
applyin interfaceTask<FlowContext>- Parameters:
context- the context shared between tasks- Returns:
- a promise containing the shared context
-
-