dev.fitko.fitconnect.api.services.events.EventLogVerificationService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client Show documentation
Show all versions of client Show documentation
Library that provides client access to the FIT-Connect api-endpoints for sending, subscribing and
routing
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);
}