@@ -44,26 +44,7 @@ static Stream<KeychainAccessProvider> get() {
4444 * @throws KeychainAccessException If storing the password failed
4545 */
4646 @ Blocking
47- default void storePassphrase (String key , @ Nullable String displayName , CharSequence passphrase ) throws KeychainAccessException {
48- storePassphrase (key , displayName , passphrase , false );
49- }
50-
51- /**
52- * Associates a passphrase with a given key and a name for that key.
53- * <p>
54- * Note: Caller is responsible for zeroing the passphrase array after use.
55- *
56- * @param key Key used to retrieve the passphrase via {@link #loadPassphrase(String)}.
57- * @param displayName The according name to the key. That's the name of the vault displayed in the UI.
58- * It's passed to the keychain as an additional information about the vault besides the key.
59- * The parameter does not need to be unique or be checked by the keychain.
60- * @param passphrase The secret to store in this keychain.
61- * @param requireOsAuthentication Defines, whether the user needs to authenticate to store a passphrase.
62- * The authentication mechanism is provided by the operating system dependent
63- * implementations of this API.
64- * @throws KeychainAccessException If storing the password failed
65- */
66- void storePassphrase (String key , @ Nullable String displayName , CharSequence passphrase , boolean requireOsAuthentication ) throws KeychainAccessException ;
47+ void storePassphrase (String key , @ Nullable String displayName , CharSequence passphrase ) throws KeychainAccessException ;
6748
6849 /**
6950 * @param key Unique key previously used while {@link #storePassphrase(String, String, CharSequence)} storing a passphrase}.
0 commit comments