class SecurityServersApiController implements SecurityServersApi {

    @Override
    @PreAuthorize("hasAuthority('INIT_CONFIG')")
    public ResponseEntity<SecurityServer> getSecurityServer(String encodedSecurityServerId) {
        SecurityServerId securityServerId = securityServerConverter.convertId(encodedSecurityServerId);
        if (!globalConfService.securityServerExists(securityServerId)) {
            throw new ResourceNotFoundException("Security server " + encodedSecurityServerId + " not found");
        }
        SecurityServer securityServer = securityServerConverter.convert(securityServerId);
        return new ResponseEntity<>(securityServer, HttpStatus.OK);
    }

    @Autowired public  SecurityServersApiController(GlobalConfService globalConfService, GlobalConfFacade globalConfFacade,
            SecurityServerConverter securityServerConverter, ServerConfService serverConfService);

}