How to connect to a password-protected ACCDB file using UcanAccess 5.1.2 #21
-
I was connecting to a password-protected ACCDB file using UcanAccess 5.0.1 by implementing the JackcessOpenerInterface as follows: import io.github.spannm.jackcess.CryptCodecProvider;
import io.github.spannm.jackcess.Database;
import io.github.spannm.jackcess.DatabaseBuilder;
import net.ucanaccess.jdbc.JackcessOpenerInterface;
import java.io.File;
import java.io.IOException;
public class CryptCodecOpener implements JackcessOpenerInterface {
public Database open(File fl, String pwd) throws IOException {
DatabaseBuilder dbd = new DatabaseBuilder(fl);
dbd.setAutoSync(false);
dbd.setCodecProvider(new CryptCodecProvider(pwd));
dbd.setReadOnly(false);
return dbd.open();
}
} I am attempting to upgrade to UcanAccess 5.1.2. However, since Jackcess has been forked and the package has moved from The interface for
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi Takumi, I was wondering whether someone would ask that question :) |
Beta Was this translation helpful? Give feedback.
-
Update: I am working on a compatible version of jackcess-encrypt. The artifact has now been released and is available for usage. |
Beta Was this translation helpful? Give feedback.
Update: I am working on a compatible version of jackcess-encrypt. The artifact has now been released and is available for usage.