class FileConnection implements ObjectStoreConnection {

    boolean validatePrincipalDomain(String principal) {
        // special case for all principals
        if (ALL_PRINCIPALS.equals(principal)) {
            return true;
        }
        int idx = principal.lastIndexOf('.');
        if (idx == -1 || idx == 0 || idx == principal.length() - 1) {
            return false;
        }
        return getDomainStruct(principal.substring(0, idx)) != null;
    }

    public  FileConnection(File rootDir, File quotaDir);

}