File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
src/security-server/admin-service/application/src/main/java/org/niis/xroad/securityserver/restapi/service Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 4242import org .niis .xroad .common .exception .InternalServerErrorException ;
4343import org .niis .xroad .globalconf .GlobalConfProvider ;
4444import org .niis .xroad .globalconf .model .ApprovedCAInfo ;
45- import org .niis .xroad .globalconf .model .CostType ;
4645import org .niis .xroad .proxy .proto .ProxyRpcClient ;
4746import org .niis .xroad .restapi .util .FormatUtils ;
4847import org .niis .xroad .securityserver .restapi .cache .CurrentSecurityServerId ;
@@ -213,11 +212,7 @@ private ApprovedCaDto buildCertificateAuthorityDto(
213212 builder .subjectDnPath (subjectDnPath );
214213 builder .topCa (subjectDnPath .size () <= 1 && subjectName .equals (subjectDnPath .getFirst ()));
215214
216- Map <String , CostType > ocspResponderAddressesAndCostTypes = globalConfService .getOcspResponderAddressesAndCostTypes (certificate );
217- ocspResponderAddressesAndCostTypes .put ("http://ocsp.int-xroad.net" , CostType .FREE ); // default OCSP responder
218- ocspResponderAddressesAndCostTypes .put ("http://ocsp.int-xroad.net/ocsp2" , CostType .PAID ); // default OCSP responder
219- ocspResponderAddressesAndCostTypes .put ("http://ocsp.int-xroad.net/ocsp3" , CostType .UNDEFINED ); // default OCSP responder
220- builder .ocspUrlsAndCostTypes (ocspResponderAddressesAndCostTypes );
215+ builder .ocspUrlsAndCostTypes (globalConfService .getOcspResponderAddressesAndCostTypes (certificate ));
221216
222217 return builder .build ();
223218 }
You can’t perform that action at this time.
0 commit comments