44import org .jetbrains .annotations .ApiStatus ;
55import org .jetbrains .annotations .Blocking ;
66import org .jetbrains .annotations .Nls ;
7+ import org .jetbrains .annotations .Nullable ;
78
89import 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