All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.fitko.fitconnect.api.services.events.EventLogVerificationService Maven / Gradle / Ivy

Go to download

Library that provides client access to the FIT-Connect api-endpoints for sending, subscribing and routing

There is a newer version: 2.3.5
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy