mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-05 00:02:27 -08:00
Show algorithm dialog
This commit is contained in:
1 parent
d6fc29ec79
commit
7aeb51813c
9 files changed
+50
-77
No files matched your search
@@ -48,6 +48,8 @@ import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.io.SyncFailedException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
public class Database {
|
||||
@@ -353,6 +355,16 @@ public class Database {
|
||||
return getPwDatabase().getEncryptionAlgorithm();
|
||||
}
|
||||
|
||||
public List<PwEncryptionAlgorithm> getAvailableEncryptionAlgorithm() {
|
||||
switch (getPwDatabase().getVersion()) {
|
||||
case V4:
|
||||
return ((PwDatabaseV4) getPwDatabase()).getAvailableEncryptionAlgorithms();
|
||||
case V3:
|
||||
return ((PwDatabaseV3) getPwDatabase()).getAvailableEncryptionAlgorithms();
|
||||
}
|
||||
return new ArrayList<>();
|
||||
}
|
||||
|
||||
public void assignEncryptionAlgorithm(PwEncryptionAlgorithm algorithm) {
|
||||
switch (getPwDatabase().getVersion()) {
|
||||
case V4:
|
||||
|
||||
Reference in new issue
Block a user