PayloadDeserializationStep Class
Deserializes every event payload through the registry - into its registered model, or the raw passthrough for a type the registry does not know - so the consumer receives typed events instead of repeating this work per statement.
public sealed class PayloadDeserializationStep : Abblix.SecurityEvents.Validation.ISecurityEventTokenValidatorInheritance System.Object → PayloadDeserializationStep
Implements ISecurityEventTokenValidator
Remarks
The step requires a verified signature: deserialization into registered models is the pipeline's most elaborate parsing, and running it on unverified input would hand an attacker the largest possible parser surface before any authenticity check. The ordering contract makes a pipeline composed that way fail its first run.
Constructors
PayloadDeserializationStep(EventTypeRegistry) Constructor
Deserializes every event payload through the registry - into its registered model, or the raw passthrough for a type the registry does not know - so the consumer receives typed events instead of repeating this work per statement.
public PayloadDeserializationStep(Abblix.SecurityEvents.Events.EventTypeRegistry registry);Parameters
registry EventTypeRegistry
The event-type registrations of this receiver.
Remarks
The step requires a verified signature: deserialization into registered models is the pipeline's most elaborate parsing, and running it on unverified input would hand an attacker the largest possible parser surface before any authenticity check. The ordering contract makes a pipeline composed that way fail its first run.
Methods
PayloadDeserializationStep.ValidateAsync(SecurityEventTokenValidationContext, CancellationToken) Method
Checks the token in flight.
public System.Threading.Tasks.ValueTask<Abblix.SecurityEvents.Validation.SecurityEventTokenValidationError?> ValidateAsync(Abblix.SecurityEvents.Validation.SecurityEventTokenValidationContext context, System.Threading.CancellationToken cancellationToken);Parameters
context SecurityEventTokenValidationContext
The state accumulated by earlier steps.
cancellationToken System.Threading.CancellationToken
Cancels I/O the step performs, such as key retrieval.
Implements ValidateAsync(SecurityEventTokenValidationContext, CancellationToken)
Returns
System.Threading.Tasks.ValueTask<SecurityEventTokenValidationError>
Null to pass the token on; an error to stop the pipeline with that verdict.