class TokenCertificateService {

    public void markAuthCertForDeletion(String hash) throws SignCertificateNotSupportedException,
            ActionNotPossibleException, GlobalConfOutdatedException, InvalidCertificateException,
            KeyNotFoundException, CertificateNotFoundException {
        try {
            unregisterAuthCertAndMarkForDeletion(hash, true);
        } catch (ManagementRequestSendingFailedException e) {
            // should never happen
            throw new RuntimeException("Management request failed", e);
        }
    }

    @Autowired @SuppressWarnings("checkstyle:ParameterNumber") public  TokenCertificateService(SignerProxyFacade signerProxyFacade, ClientService clientService,
            CertificateAuthorityService certificateAuthorityService, KeyService keyService, DnFieldHelper dnFieldHelper,
            GlobalConfService globalConfService, GlobalConfFacade globalConfFacade, ClientRepository clientRepository,
            ManagementRequestSenderService managementRequestSenderService, ServerConfService serverConfService,
            PossibleActionsRuleEngine possibleActionsRuleEngine, TokenService tokenService,
            SecurityHelper securityHelper, AuditDataHelper auditDataHelper,
            AuditEventHelper auditEventHelper);

}