- java.lang.Object
-
- org.sqlite.SQLiteConfig
-
- org.sqlite.mc.SQLiteMCConfig
-
- Direct Known Subclasses:
SQLiteMCConfig.Builder
public class SQLiteMCConfig extends SQLiteConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SQLiteMCConfig.Builder
static class
SQLiteMCConfig.CipherAlgorithm
static class
SQLiteMCConfig.HmacAlgorithm
static class
SQLiteMCConfig.HmacPgno
static class
SQLiteMCConfig.KdfAlgorithm
-
Nested classes/interfaces inherited from class org.sqlite.SQLiteConfig
SQLiteConfig.AutoVacuum, SQLiteConfig.Cache, SQLiteConfig.DateClass, SQLiteConfig.DatePrecision, SQLiteConfig.Encoding, SQLiteConfig.HexKeyMode, SQLiteConfig.JournalMode, SQLiteConfig.LockingMode, SQLiteConfig.Pragma, SQLiteConfig.SynchronousMode, SQLiteConfig.TempStore, SQLiteConfig.TransactionMode
-
-
Field Summary
-
Fields inherited from class org.sqlite.SQLiteConfig
DEFAULT_DATE_STRING_FORMAT
-
-
Constructor Summary
Constructors Constructor Description SQLiteMCConfig()
SQLiteMCConfig(Properties prop)
-
Method Summary
-
Methods inherited from class org.sqlite.SQLiteConfig
apply, createConnection, deferForeignKeys, enableCaseSensitiveLike, enableCountChanges, enableEmptyResultCallBacks, enableFullColumnNames, enableFullSync, enableLoadExtension, enableRecursiveTriggers, enableReverseUnorderedSelects, enableShortColumnNames, enforceForeignKeys, getBusyTimeout, getOpenModeFlags, getTransactionMode, incrementalVacuum, isEnabledLoadExtension, isEnabledSharedCache, isEnabledSharedCacheConnection, newConnectionConfig, resetOpenMode, setApplicationId, setAutoVacuum, setBusyTimeout, setCacheMode, setCacheSize, setDateClass, setDatePrecision, setDateStringFormat, setDefaultCacheSize, setEncoding, setHexKeyMode, setJounalSizeLimit, setJournalMode, setLockingMode, setMaxPageCount, setOpenMode, setPageSize, setPragma, setReadOnly, setReadUncommited, setSharedCache, setSynchronous, setTempStore, setTempStoreDirectory, setTransactionMode, setTransactionMode, setUserVersion, toProperties, useLegacyFileFormat
-
-
-
-
Constructor Detail
-
SQLiteMCConfig
public SQLiteMCConfig()
-
SQLiteMCConfig
public SQLiteMCConfig(Properties prop)
-
-
Method Detail
-
isValid
protected boolean isValid(Integer value, int min, int max)
-
setCipher
protected SQLiteMCConfig setCipher(SQLiteMCConfig.CipherAlgorithm cipherAlgorithm)
-
withKey
public SQLiteMCConfig withKey(String key)
-
setLegacy
protected SQLiteMCConfig setLegacy(int value)
-
setLegacyPageSize
protected SQLiteMCConfig setLegacyPageSize(int value)
-
setKdfIter
protected SQLiteMCConfig setKdfIter(int value)
-
setFastKdfIter
protected SQLiteMCConfig setFastKdfIter(int value)
-
setHmacUse
protected SQLiteMCConfig setHmacUse(boolean value)
-
setHmacPgno
protected SQLiteMCConfig setHmacPgno(SQLiteMCConfig.HmacPgno value)
-
setHmacSaltMask
protected SQLiteMCConfig setHmacSaltMask(int value)
-
setKdfAlgorithm
protected SQLiteMCConfig setKdfAlgorithm(SQLiteMCConfig.KdfAlgorithm value)
-
setHmacAlgorithm
protected SQLiteMCConfig setHmacAlgorithm(SQLiteMCConfig.HmacAlgorithm value)
-
setPlaintextHeaderSize
protected SQLiteMCConfig setPlaintextHeaderSize(int value)
-
useSQLInterface
public SQLiteMCConfig useSQLInterface(boolean sqlInterface)
-
applyCipherParameters
public void applyCipherParameters(Connection conn, Statement stat) throws SQLException
- Throws:
SQLException
-
applyCipherParametersByNames
protected void applyCipherParametersByNames(SQLiteConfig.Pragma[] pragmas, Connection conn, Statement statement) throws SQLException
- Throws:
SQLException
-
-