Skip to content

Commit

Permalink
implement KeychainAccessProvider.displayName()
Browse files Browse the repository at this point in the history
  • Loading branch information
overheadhunter committed Jun 7, 2021
1 parent 632f89d commit 3371cf5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<!-- runtime dependencies -->
<api.version>1.0.0-beta2</api.version>
<api.version>1.0.0-rc1</api.version>
<secret-service.version>1.6.2</secret-service.version>
<kdewallet.version>1.2.1</kdewallet.version>
<guava.version>30.0-jre</guava.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ public KDEWalletKeychainAccess() {
this.wallet = ConnectedWallet.connect();
}

@Override
public String displayName() {
return "KDE Wallet";
}

@Override
public boolean isSupported() {
return wallet.map(ConnectedWallet::isSupported).orElse(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@

import java.io.IOException;
import java.security.AccessControlException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class SecretServiceKeychainAccess implements KeychainAccessProvider {

private final String LABEL_FOR_SECRET_IN_KEYRING = "Cryptomator";

@Override
public String displayName() {
return "Gnome Keyring";
}

@Override
public boolean isSupported() {
return SimpleCollection.isAvailable();
Expand Down

0 comments on commit 3371cf5

Please sign in to comment.