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 classSQLiteMCConfig.Builderstatic classSQLiteMCConfig.CipherAlgorithmstatic classSQLiteMCConfig.HmacAlgorithmstatic classSQLiteMCConfig.HmacPgnostatic classSQLiteMCConfig.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 voidapplyCipherParameters(java.sql.Connection conn, java.sql.Statement stat)protected voidapplyCipherParametersByNames(SQLiteConfig.Pragma[] pragmas, java.sql.Connection conn, java.sql.Statement statement)protected booleanisValid(java.lang.Integer value, int min, int max)protected SQLiteMCConfigsetCipher(SQLiteMCConfig.CipherAlgorithm cipherAlgorithm)protected SQLiteMCConfigsetFastKdfIter(int value)protected SQLiteMCConfigsetHmacAlgorithm(SQLiteMCConfig.HmacAlgorithm value)protected SQLiteMCConfigsetHmacPgno(SQLiteMCConfig.HmacPgno value)protected SQLiteMCConfigsetHmacSaltMask(int value)protected SQLiteMCConfigsetHmacUse(boolean value)protected SQLiteMCConfigsetKdfAlgorithm(SQLiteMCConfig.KdfAlgorithm value)protected SQLiteMCConfigsetKdfIter(int value)protected SQLiteMCConfigsetLegacy(int value)protected SQLiteMCConfigsetLegacyPageSize(int value)protected SQLiteMCConfigsetPlaintextHeaderSize(int value)SQLiteMCConfiguseSQLInterface(boolean sqlInterface)SQLiteMCConfigwithKey(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
-
-