org.sqlite.mc.SQLiteMCAscon128Config Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sqlite-jdbc Show documentation
Show all versions of sqlite-jdbc Show documentation
SQLite JDBC library with encryption and authentication support
The newest version!
package org.sqlite.mc;
public class SQLiteMCAscon128Config extends SQLiteMCConfig.Builder {
public SQLiteMCAscon128Config() {
super();
setCipher(CipherAlgorithm.RC4);
}
@Override
public SQLiteMCAscon128Config setKdfIter(int value) {
if (value < 1) {
throw new IllegalArgumentException("Minimum value for kdf_iter is 1");
}
super.setKdfIter(value);
return this;
}
public static SQLiteMCAscon128Config getDefault() {
return new SQLiteMCAscon128Config().setKdfIter(64007);
}
}