class DiagnosticsApiController implements DiagnosticsApi {

    @Override
    @PreAuthorize("hasAuthority('DIAGNOSTICS')")
    public ResponseEntity<List<OcspResponderDiagnostics>> getOcspRespondersDiagnostics() {
        List<OcspResponderDiagnosticsStatus> statuses = diagnosticService.queryOcspResponderStatus();
        return new ResponseEntity<>(ocspResponderDiagnosticConverter.convert(statuses), HttpStatus.OK);
    }

    @Autowired public  DiagnosticsApiController(DiagnosticService diagnosticService,
            GlobalConfDiagnosticConverter globalConfDiagnosticConverter,
            TimestampingServiceDiagnosticConverter timestampingServiceDiagnosticConverter,
            OcspResponderDiagnosticConverter ocspResponderDiagnosticConverter);

}