Skip to content

Commit b0de334

Browse files
committed
make keychainServiceProvider a named one
1 parent 46714a5 commit b0de334

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/main/java/org/cryptomator/integrations/keychain/KeychainAccessProvider.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.cryptomator.integrations.keychain;
22

33
import org.cryptomator.integrations.common.IntegrationsLoader;
4+
import org.cryptomator.integrations.common.NamedServiceProvider;
45
import org.jetbrains.annotations.ApiStatus;
56
import org.jetbrains.annotations.Blocking;
67
import org.jetbrains.annotations.Nls;
@@ -11,7 +12,7 @@
1112
/**
1213
* This is the interface used by Cryptomator to store passwords securely in external keychains, such as system keychains or password managers.
1314
*/
14-
public interface KeychainAccessProvider {
15+
public interface KeychainAccessProvider extends NamedServiceProvider {
1516

1617
/**
1718
* Loads all available KeychainAccessProvider.
@@ -23,14 +24,6 @@ static Stream<KeychainAccessProvider> get() {
2324
return IntegrationsLoader.loadAll(KeychainAccessProvider.class).filter(KeychainAccessProvider::isSupported);
2425
}
2526

26-
/**
27-
* A name to display in UI elements. If required, this should be localized.
28-
*
29-
* @return user-friendly name (must not be null or empty)
30-
*/
31-
@Nls(capitalization = Nls.Capitalization.Title)
32-
String displayName();
33-
3427
/**
3528
* Associates a passphrase with a given key and a name for that key.
3629
* <p>

0 commit comments

Comments
 (0)