提交 8022f479 authored 作者: Thomas Mueller's avatar Thomas Mueller

FilePathCrypt > FilePathEncrypt

上级 62cdd2bb
......@@ -14,7 +14,7 @@ import java.nio.channels.OverlappingFileLockException;
import org.h2.mvstore.cache.FilePathCache;
import org.h2.store.fs.FilePath;
import org.h2.store.fs.FilePathCrypt;
import org.h2.store.fs.FilePathEncrypt;
import org.h2.store.fs.FilePathNio;
/**
......@@ -130,9 +130,9 @@ public class FileStore {
try {
file = f.open(readOnly ? "r" : "rw");
if (encryptionKey != null) {
byte[] key = FilePathCrypt.getPasswordBytes(encryptionKey);
byte[] key = FilePathEncrypt.getPasswordBytes(encryptionKey);
encryptedFile = file;
file = new FilePathCrypt.FileCrypt(fileName, key, file);
file = new FilePathEncrypt.FileEncrypt(fileName, key, file);
}
file = FilePathCache.wrap(file);
fileSize = file.size();
......
......@@ -30,7 +30,7 @@ import org.h2.message.DbException;
import org.h2.mvstore.DataUtils;
import org.h2.mvstore.cache.FilePathCache;
import org.h2.store.fs.FilePath;
import org.h2.store.fs.FilePathCrypt;
import org.h2.store.fs.FilePathEncrypt;
import org.h2.store.fs.FileUtils;
import org.h2.test.TestBase;
import org.h2.test.utils.AssertThrows;
......@@ -72,7 +72,7 @@ public class TestFileSystem extends TestBase {
testMemFsDir();
testClasspath();
FilePathDebug.register().setTrace(true);
FilePathCrypt.register();
FilePathEncrypt.register();
testSimpleExpandTruncateSize();
testSplitDatabaseInZip();
testDatabaseInMemFileSys();
......@@ -90,8 +90,8 @@ public class TestFileSystem extends TestBase {
testFileSystem("nio:" + getBaseDir() + "/fs");
testFileSystem("cache:nio:" + getBaseDir() + "/fs");
testFileSystem("nioMapped:" + getBaseDir() + "/fs");
testFileSystem("crypt:0007:" + getBaseDir() + "/fs");
testFileSystem("cache:crypt:0007:" + getBaseDir() + "/fs");
testFileSystem("encrypt:0007:" + getBaseDir() + "/fs");
testFileSystem("cache:encrypt:0007:" + getBaseDir() + "/fs");
if (!config.splitFileSystem) {
testFileSystem("split:" + getBaseDir() + "/fs");
testFileSystem("split:nioMapped:" + getBaseDir() + "/fs");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论