class DiagnosticsApiController implements DiagnosticsApi {

    @Override
    @PreAuthorize("hasAuthority('DIAGNOSTICS')")
    public ResponseEntity<GlobalConfDiagnostics> getGlobalConfDiagnostics() {
        DiagnosticsStatus status = diagnosticService.queryGlobalConfStatus();
        return new ResponseEntity<>(globalConfDiagnosticConverter.convert(status), HttpStatus.OK);
    }

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

}