Skip to content

Commit dbb9494

Browse files
committed
Refactor keychain api
Adhere to new version of integration-api See: cryptomator/integrations-api#56
1 parent e967a51 commit dbb9494

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

gradle/libs.versions.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# This file was generated by the Gradle 'init' task.
22
# https://docs.gradle.org/current/userguide/platforms.html#sub::toml-dependencies-format
33

4+
# ToDo Change to the correct release version of the integrations-api
5+
# ToDo Check, whether JUnit 5 versions are compatible (needs to be the same as for integrations-api)
46
[versions]
57
com-bitwarden-sdk-secrets = "1.0.1"
6-
org-cryptomator-integrations-api = "1.5.0"
8+
org-cryptomator-integrations-api = "1.6.0-SNAPSHOT"
79
org-junit-jupiter-junit-jupiter = "5.12.0"
810
org-junit-jupiter-junit-jupiter-api = "5.12.0"
911
org-junit-jupiter-junit-jupiter-engine = "5.12.0"

src/main/java/org/purejava/integrations/keychain/BitwardenAccess.java

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public BitwardenAccess() {
4949
}
5050

5151
@Override
52-
public String displayName() { return "Bitwarden"; }
52+
public String getName() { return "Bitwarden"; }
5353

5454
@Override
5555
public boolean isSupported() { return isSupported; }
@@ -58,12 +58,7 @@ public BitwardenAccess() {
5858
public boolean isLocked() { return false; }
5959

6060
@Override
61-
public void storePassphrase(String vault, String displayName, CharSequence password) throws KeychainAccessException {
62-
storePassphrase(vault, displayName, password, false);
63-
}
64-
65-
@Override
66-
public void storePassphrase(String vault, String name, CharSequence password, boolean requireOsAuthentication) throws KeychainAccessException {
61+
public void storePassphrase(String vault, String name, CharSequence password) throws KeychainAccessException {
6762
try {
6863
var projectId = getprojectId();
6964
var secret = getSecret(vault);
@@ -107,11 +102,6 @@ public void deletePassphrase(String vault) throws KeychainAccessException {
107102
}
108103
}
109104

110-
@Override
111-
public void changePassphrase(String vault, CharSequence password) throws KeychainAccessException {
112-
changePassphrase(vault, "Vault", password);
113-
}
114-
115105
@Override
116106
public void changePassphrase(String vault, String name, CharSequence password) throws KeychainAccessException {
117107
try {

0 commit comments

Comments
 (0)