Skip to content

Commit e27d7bb

Browse files
committed
Merge branch 'develop' into release/1.4.0
2 parents 4fd0d48 + fe1edcd commit e27d7bb

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<dependency>
6060
<groupId>org.junit.jupiter</groupId>
6161
<artifactId>junit-jupiter</artifactId>
62-
<version>5.10.2</version>
62+
<version>5.10.3</version>
6363
<scope>test</scope>
6464
</dependency>
6565
<dependency>
@@ -95,11 +95,11 @@
9595
<plugin>
9696
<groupId>org.apache.maven.plugins</groupId>
9797
<artifactId>maven-surefire-plugin</artifactId>
98-
<version>3.2.5</version>
98+
<version>3.3.1</version>
9999
</plugin>
100100
<plugin>
101101
<artifactId>maven-javadoc-plugin</artifactId>
102-
<version>3.7.0</version>
102+
<version>3.8.0</version>
103103
<executions>
104104
<execution>
105105
<id>attach-javadocs</id>

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,24 @@ default void storePassphrase(String key, CharSequence passphrase) throws Keychai
5656
* @throws KeychainAccessException If storing the password failed
5757
*/
5858
@Blocking
59-
void storePassphrase(String key, @Nullable String displayName, CharSequence passphrase) throws KeychainAccessException;
59+
default void storePassphrase(String key, @Nullable String displayName, CharSequence passphrase) throws KeychainAccessException {
60+
storePassphrase(key, displayName, passphrase, false);
61+
}
62+
63+
/**
64+
* Associates a passphrase with a given key and a name for that key.
65+
*
66+
* @param key Key used to retrieve the passphrase via {@link #loadPassphrase(String)}.
67+
* @param displayName The according name to the key. That's the name of the vault displayed in the UI.
68+
* It's passed to the keychain as an additional information about the vault besides the key.
69+
* The parameter does not need to be unique or be checked by the keychain.
70+
* @param passphrase The secret to store in this keychain.
71+
* @param requireOsAuthentication Defines, whether the user needs to authenticate to store a passphrase.
72+
* The authentication mechanism is provided by the operating system dependent
73+
* implementations of this API.
74+
* @throws KeychainAccessException If storing the password failed
75+
*/
76+
void storePassphrase(String key, @Nullable String displayName, CharSequence passphrase, boolean requireOsAuthentication) throws KeychainAccessException;
6077

6178
/**
6279
* @param key Unique key previously used while {@link #storePassphrase(String, String, CharSequence)} storing a passphrase}.

0 commit comments

Comments
 (0)