Commit 5bbeabd0 authored by Deniro StopCovid's avatar Deniro StopCovid Committed by Redford StopCovid

feat: Use the property var robert.server.request-time-delta-tolerance mapped...

feat: Use the property var robert.server.request-time-delta-tolerance mapped on the env var ROBERT_SERVER_REQUEST_TIME_DELTA_TOLERANCE
parent e9119c35
......@@ -2,7 +2,6 @@ package fr.gouv.stopc.robert.crypto.grpc.server.service;
public interface ICryptoServerConfigurationService {
/**
* TpStart in NTP seconds
*
......
......@@ -414,7 +414,6 @@ public class CryptoGrpcServiceBaseImpl extends CryptoGrpcServiceImplImplBase {
true,
false,
enableEpochOverlapping, adjacentEpochMatchEnum);
} else {
return manageEBIDDecryptRetry(ebid,
authRequestEpoch,
......@@ -452,7 +451,6 @@ public class CryptoGrpcServiceBaseImpl extends CryptoGrpcServiceImplImplBase {
switch (adjacentEpochMatchEnum) {
case PREVIOUS:
log.warn("Retrying ebid decrypt with previous epoch");
return decryptEBIDAndCheckEpoch(ebid, authRequestEpoch - 1, false, false, false, AdjacentEpochMatchEnum.NONE);
case NEXT:
log.warn("Retrying ebid decrypt with next epoch");
......
......@@ -19,7 +19,6 @@ import fr.gouv.stopc.robert.server.common.utils.TimeUtils;
@Service
public class CryptoServerConfigurationServiceImpl implements ICryptoServerConfigurationService {
private long timeStartNtp;
private final PropertyLoader propertyLoader;
......
......@@ -1487,7 +1487,6 @@ class CryptoServiceGrpcServerTest {
// when(this.cryptographicStorageService.getServerKey(epochId, time, true)).thenReturn(serverKeys[1]);
when(this.cryptographicStorageService.getFederationKey()).thenReturn(this.federationKey);
byte[] mac;
byte[] ecc;
try {
......@@ -1662,7 +1661,6 @@ class CryptoServiceGrpcServerTest {
return;
}
// Given
GetInfoFromHelloMessageRequest request = GetInfoFromHelloMessageRequest
.newBuilder()
......
......@@ -40,4 +40,3 @@ robert.protocol.hello-message-timestamp-tolerance=${ROBERT_PROTOCOL_HELLO_TOLERA
robert.server.country-code=${ROBERT_SERVER_COUNTRY_CODE:0x21}
robert.protocol.contagious-period=${ROBERT_PROTOCOL_CONTAGIOUS_PERIOD:14}
......@@ -121,6 +121,5 @@ public final class TimeUtils {
}
}
return false;
}
}
......@@ -15,7 +15,6 @@ import com.google.protobuf.ByteString;
import fr.gouv.stopc.robert.crypto.grpc.server.client.service.ICryptoServerGrpcClient;
import fr.gouv.stopc.robert.crypto.grpc.server.messaging.*;
import fr.gouv.stopc.robert.server.common.DigestSaltEnum;
import fr.gouv.stopc.robert.server.common.service.IServerConfigurationService;
import fr.gouv.stopc.robert.server.common.utils.ByteUtils;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment