Package org.sqlite.mc
Class SQLiteMCConfig
- 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(java.util.Properties prop)
-
Method Summary
Modifier and Type Method Description void
applyCipherParameters(java.sql.Connection conn, java.sql.Statement stat)
protected void
applyCipherParametersByNames(SQLiteConfig.Pragma[] pragmas, java.sql.Connection conn, java.sql.Statement statement)
protected boolean
isValid(java.lang.Integer value, int min, int max)
protected SQLiteMCConfig
setCipher(SQLiteMCConfig.CipherAlgorithm cipherAlgorithm)
protected SQLiteMCConfig
setFastKdfIter(int value)
protected SQLiteMCConfig
setHmacAlgorithm(SQLiteMCConfig.HmacAlgorithm value)
protected SQLiteMCConfig
setHmacPgno(SQLiteMCConfig.HmacPgno value)
protected SQLiteMCConfig
setHmacSaltMask(int value)
protected SQLiteMCConfig
setHmacUse(boolean value)
protected SQLiteMCConfig
setKdfAlgorithm(SQLiteMCConfig.KdfAlgorithm value)
protected SQLiteMCConfig
setKdfIter(int value)
protected SQLiteMCConfig
setLegacy(int value)
protected SQLiteMCConfig
setLegacyPageSize(int value)
protected SQLiteMCConfig
setPlaintextHeaderSize(int value)
SQLiteMCConfig
useSQLInterface(boolean sqlInterface)
SQLiteMCConfig
withKey(java.lang.String key)
-
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
-
-
-
-
Method Detail
-
isValid
protected boolean isValid(java.lang.Integer value, int min, int max)
-
setCipher
protected SQLiteMCConfig setCipher(SQLiteMCConfig.CipherAlgorithm cipherAlgorithm)
-
withKey
public SQLiteMCConfig withKey(java.lang.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(java.sql.Connection conn, java.sql.Statement stat) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
applyCipherParametersByNames
protected void applyCipherParametersByNames(SQLiteConfig.Pragma[] pragmas, java.sql.Connection conn, java.sql.Statement statement) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
-