dev.fitko.fitconnect.api.services.events.EventLogVerificationService Maven / Gradle / Ivy
package dev.fitko.fitconnect.api.services.events;
import com.nimbusds.jwt.SignedJWT;
import dev.fitko.fitconnect.api.domain.model.event.Event;
import dev.fitko.fitconnect.api.domain.model.event.EventLog;
import dev.fitko.fitconnect.api.domain.validation.ValidationContext;
import dev.fitko.fitconnect.api.domain.validation.ValidationResult;
import java.util.List;
/**
* Verification service that validates the {@link Event}s of an {@link EventLog}.
*
* @see SET-Validation
*/
public interface EventLogVerificationService {
/**
* Validates all entries of an {@link EventLog} by verifying cryptographic standards, the structure and validity of the SETs signatures.
*
* @param context {@link ValidationContext} configuration with all data needed to validate the event log
* @param eventTokens list of set-events that should be validated
* @return a {@link ValidationResult} with an optional error
*
*/
List validateEventLogs(ValidationContext context, List eventTokens);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy