Enum Class PluginInitiationUtils.VerdictRecorder
- All Implemented Interfaces:
Serializable,Comparable<PluginInitiationUtils.VerdictRecorder>,java.lang.constant.Constable
- Enclosing class:
PluginInitiationUtils
RemoteActionLog verdict for
the enabled branch (CR-01, 06-REVIEW.md).
Exactly two entries — execute_command and file_operation — invoke a handler
that performs its own, independent, finer-grained AccessDecision check
(CommandExecutionManager#isCommandAllowed/FileOperationManager#isPathAllowed)
and records its own verdict from that check; every other capability-gated entry has no
second policy layer to conflict with. Before this enum existed,
dispatchWithCapabilityGate recorded a blanket ALLOWED entry on every enabled
branch regardless of which case it was, producing a contradictory second log line — a real
DENIED from the handler's own check immediately followed by a false ALLOWED
from the gate — for every blocklisted command and every credential/out-of-root file request.
A required field (verified by inspecting every entry's handler for its own
RemoteActionLog write) is what stops a newly added entry from silently repeating that
mistake, rather than a defaulted or inferred value. Precisely: omitting the argument is a
genuine compile error; a null value compiles but is rejected immediately at
class-initialization time — see PluginInitiationUtils.InboundHandlerEntry's own javadoc for the exact
boundary between the two (IN-01, 06-REVIEW.md).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPluginInitiationUtils.dispatchWithCapabilityGate(java.lang.String, com.google.gson.JsonObject, com.google.gson.JsonObject, com.ultikits.ultitools.utils.PluginInitiationUtils.InboundHandlerEntry)records theRemoteActionLog.Verdict.ALLOWEDentry on the enabled branch — the default shape for an entry with no second policy layer.The handler records its own verdict from its own, finer-grainedAccessDecisioncheck —PluginInitiationUtils.dispatchWithCapabilityGate(java.lang.String, com.google.gson.JsonObject, com.google.gson.JsonObject, com.ultikits.ultitools.utils.PluginInitiationUtils.InboundHandlerEntry)must not also record one, or the log gets two contradictory lines for one request. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GATE
PluginInitiationUtils.dispatchWithCapabilityGate(java.lang.String, com.google.gson.JsonObject, com.google.gson.JsonObject, com.ultikits.ultitools.utils.PluginInitiationUtils.InboundHandlerEntry)records theRemoteActionLog.Verdict.ALLOWEDentry on the enabled branch — the default shape for an entry with no second policy layer. -
HANDLER
The handler records its own verdict from its own, finer-grainedAccessDecisioncheck —PluginInitiationUtils.dispatchWithCapabilityGate(java.lang.String, com.google.gson.JsonObject, com.google.gson.JsonObject, com.ultikits.ultitools.utils.PluginInitiationUtils.InboundHandlerEntry)must not also record one, or the log gets two contradictory lines for one request.
-
-
Constructor Details
-
VerdictRecorder
private VerdictRecorder()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-