public interface SelfAuthorizer
Commands with complicated authorization requirements will implement this interface, in addition to the AdminCommand interface.
| Modifier and Type | Method and Description |
|---|---|
void |
authorize(Subject s,
Map<String,Object> env)
Tells whether the Subject is authorized to execute the AdminCommand
which implements this interface.
|
void authorize(Subject s, Map<String,Object> env)
Note that the command framework will have injected parameter values into fields annotated with @Param before invoking this method, so the logic in isAuthorized can use those parameters in making its decision.
ctx - the AdminCommandContext for the current command executionCopyright © 2017–2020 Eclipse Foundation. All rights reserved.