Skip to content

Commit 1e8ea54

Browse files
Merge branch 'main' into develop
[ci skip]
2 parents 1ee3e20 + a21e678 commit 1e8ea54

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

.github/workflows/publish-central.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ jobs:
2828
- name: Deploy
2929
run: mvn deploy -B -DskipTests -Psign,deploy-central --no-transfer-progress
3030
env:
31+
MAVEN_OPTS: >
32+
--add-opens=java.base/java.util=ALL-UNNAMED
33+
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED
34+
--add-opens=java.base/java.text=ALL-UNNAMED
35+
--add-opens=java.desktop/java.awt.font=ALL-UNNAMED
3136
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3237
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
3338
MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>org.cryptomator</groupId>
77
<artifactId>integrations-api</artifactId>
8-
<version>1.1.0-SNAPSHOT</version>
8+
<version>1.2.0-SNAPSHOT</version>
99

1010
<name>Cryptomator Integrations API</name>
1111
<description>Defines optional service interfaces that may be used by Cryptomator</description>

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import org.jetbrains.annotations.ApiStatus;
55
import org.jetbrains.annotations.Blocking;
66
import org.jetbrains.annotations.Nls;
7+
import org.jetbrains.annotations.Nullable;
78

89
import java.util.stream.Stream;
910

@@ -55,10 +56,10 @@ default void storePassphrase(String key, CharSequence passphrase) throws Keychai
5556
* @throws KeychainAccessException If storing the password failed
5657
*/
5758
@Blocking
58-
void storePassphrase(String key, String displayName, CharSequence passphrase) throws KeychainAccessException;
59+
void storePassphrase(String key, @Nullable String displayName, CharSequence passphrase) throws KeychainAccessException;
5960

6061
/**
61-
* @param key Unique key previously used while {@link #storePassphrase(String, CharSequence) storing a passphrase}.
62+
* @param key Unique key previously used while {@link #storePassphrase(String, String, CharSequence)} storing a passphrase}.
6263
* @return The stored passphrase for the given key or <code>null</code> if no value for the given key could be found.
6364
* @throws KeychainAccessException If loading the password failed
6465
*/
@@ -68,15 +69,15 @@ default void storePassphrase(String key, CharSequence passphrase) throws Keychai
6869
/**
6970
* Deletes a passphrase with a given key.
7071
*
71-
* @param key Unique key previously used while {@link #storePassphrase(String, CharSequence) storing a passphrase}.
72+
* @param key Unique key previously used while {@link #storePassphrase(String, String, CharSequence)} storing a passphrase}.
7273
* @throws KeychainAccessException If deleting the password failed
7374
*/
7475
void deletePassphrase(String key) throws KeychainAccessException;
7576

7677
/**
7778
* Updates a passphrase with a given key. Noop, if there is no item for the given key.
7879
*
79-
* @param key Unique key previously used while {@link #storePassphrase(String, CharSequence) storing a passphrase}.
80+
* @param key Unique key previously used while {@link #storePassphrase(String, String, CharSequence)} storing a passphrase}.
8081
* @param passphrase The secret to be updated in this keychain.
8182
* @throws KeychainAccessException If changing the password failed
8283
* @deprecated Please use {@link #changePassphrase(String, String, CharSequence)} instead
@@ -90,15 +91,15 @@ default void changePassphrase(String key, CharSequence passphrase) throws Keycha
9091
/**
9192
* Updates a passphrase with a given key and stores a name for that key. Noop, if there is no item for the given key.
9293
*
93-
* @param key Unique key previously used while {@link #storePassphrase(String, CharSequence) storing a passphrase}.
94+
* @param key Unique key previously used while {@link #storePassphrase(String, String, CharSequence)} storing a passphrase}.
9495
* @param displayName The according name to the key. That's the name of the vault displayed in the UI.
9596
* It's passed to the keychain as an additional information about the vault besides the key.
9697
* The parameter does not need to be unique or be checked by the keychain.
9798
* @param passphrase The secret to be updated in this keychain.
9899
* @throws KeychainAccessException If changing the password failed
99100
*/
100101
@Blocking
101-
void changePassphrase(String key, String displayName, CharSequence passphrase) throws KeychainAccessException;
102+
void changePassphrase(String key, @Nullable String displayName, CharSequence passphrase) throws KeychainAccessException;
102103

103104
/**
104105
* @return <code>true</code> if this KeychainAccessIntegration works on the current machine.

0 commit comments

Comments
 (0)