Skip to content

Commit 1c63a74

Browse files
committed
Integrations-api needs to be extended for changePassphrase as well
as this uses storePassphrase internally in keepassxc-proxy-access
1 parent b7f8613 commit 1c63a74

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,18 @@ default void storePassphrase(String key, String displayName, CharSequence passph
5757
*/
5858
void changePassphrase(String key, CharSequence passphrase) throws KeychainAccessException;
5959

60+
/**
61+
* Updates a passphrase with a given key and stores a name for that key. Noop, if there is no item for the given key.
62+
*
63+
* @param key Unique key previously used while {@link #storePassphrase(String, CharSequence) storing a passphrase}.
64+
* @param displayName The according name to the key.
65+
* @param passphrase The secret to be updated in this keychain.
66+
* @throws KeychainAccessException If changing the password failed
67+
*/
68+
default void changePassphrase(String key, String displayName, CharSequence passphrase) throws KeychainAccessException {
69+
changePassphrase(key, passphrase);
70+
}
71+
6072
/**
6173
* @return <code>true</code> if this KeychainAccessIntegration works on the current machine.
6274
* @implSpec This method must not throw any exceptions and should fail fast

0 commit comments

Comments
 (0)