class FileConnection implements ObjectStoreConnection {

    @Override
    public boolean deletePublicKeyEntry(String domainName, String serviceName, String keyId) {

        final String caller = "deletePublicKeyEntry";
        DomainStruct domainStruct = getDomainStruct(domainName);
        if (domainStruct == null) {
            throw ZMSUtils.error(ResourceException.NOT_FOUND, "domain not found", caller);
        }
        ServiceIdentity service = getServiceObject(domainStruct, serviceName);
        if (service == null) {
            throw ZMSUtils.error(ResourceException.NOT_FOUND, "service not found", caller);
        }
        List<PublicKeyEntry> keyList = service.getPublicKeys();
        boolean keyRemoved = removePublicKeyEntry(keyList, keyId);
        if (!keyRemoved) {
            return false;
        }
        putDomainStruct(domainName, domainStruct);
        return true;
    }

    public  FileConnection(File rootDir, File quotaDir);

}