TimeOfEventStep Class
Requires the "toe" claim, where the transmitter chose to send one, to be a date the receiver can read. Its absence is allowed - it is OPTIONAL (RFC 8417 Section 2.2) - and its value is not judged, since a profile may make it approximate.
public sealed class TimeOfEventStep : Abblix.SecurityEvents.Validation.ISecurityEventTokenValidatorInheritance System.Object → TimeOfEventStep
Implements ISecurityEventTokenValidator
Remarks
The token is verified without lifetime handling, so nothing before the receiver's own code reads this claim, and the accessor throws on a value it cannot read. Judged here, by name, so that a receiver reading TimeOfEvent afterwards meets either a date or the absence the specification allows - never a value the transmitter wrote and nobody refused.
Methods
TimeOfEventStep.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.