Skip to content

Commit

Permalink
P4ADEV-1781 minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
serdimic committed Dec 20, 2024
1 parent 9528a11 commit 038ce88
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import it.gov.pagopa.pu.organization.controller.generated.BrokerApi;
import it.gov.pagopa.pu.organization.dto.generated.BrokerApiKeys;
import it.gov.pagopa.pu.organization.service.BrokerService;
import it.gov.pagopa.pu.organization.service.broker.BrokerService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RestController;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

@Service
@Slf4j
Expand All @@ -23,7 +22,7 @@ public BrokerEncryptionService(
this.brokerEncryptPassword = brokerEncryptPassword;
}

private final Map<byte[], String> apiKeyDecryptMap = Collections.synchronizedMap(new HashMap<>());
private final Map<byte[], String> apiKeyDecryptMap = new ConcurrentHashMap<>();

public BrokerApiKeys getBrokerDecryptedApiKeys(Broker broker){
return BrokerApiKeys.builder()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package it.gov.pagopa.pu.organization.service;
package it.gov.pagopa.pu.organization.service.broker;

import it.gov.pagopa.pu.organization.dto.generated.BrokerApiKeys;
import it.gov.pagopa.pu.organization.model.Broker;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package it.gov.pagopa.pu.organization.service;
package it.gov.pagopa.pu.organization.service.broker;

import it.gov.pagopa.pu.organization.dto.generated.BrokerApiKeys;
import it.gov.pagopa.pu.organization.model.Broker;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package it.gov.pagopa.pu.organization.service;
package it.gov.pagopa.pu.organization.service.broker;

import it.gov.pagopa.pu.organization.dto.generated.BrokerApiKeys;
import it.gov.pagopa.pu.organization.model.Broker;
Expand Down

0 comments on commit 038ce88

Please sign in to comment.