@@ -35,20 +35,14 @@ public boolean isLocked() {
3535 }
3636 }
3737
38- @ Override
39- @ Deprecated
40- public void storePassphrase (String key , CharSequence passphrase ) throws KeychainAccessException {
41- storePassphrase (key , null , passphrase );
42- }
43-
4438 @ Override
4539 public void storePassphrase (String key , String displayName , CharSequence passphrase ) throws KeychainAccessException {
4640 try (SimpleCollection keyring = new SimpleCollection ()) {
4741 List <String > list = keyring .getItems (createAttributes (key ));
4842 if (list == null || list .isEmpty ()) {
4943 keyring .createItem (LABEL_FOR_SECRET_IN_KEYRING , passphrase , createAttributes (key ));
5044 } else {
51- changePassphrase (key , passphrase );
45+ changePassphrase (key , displayName , passphrase );
5246 }
5347 } catch (IOException | SecurityException e ) {
5448 throw new KeychainAccessException ("Storing password failed." , e );
@@ -81,12 +75,6 @@ public void deletePassphrase(String key) throws KeychainAccessException {
8175 }
8276 }
8377
84- @ Override
85- @ Deprecated
86- public void changePassphrase (String key , CharSequence passphrase ) throws KeychainAccessException {
87- changePassphrase (key , null , passphrase );
88- }
89-
9078 @ Override
9179 public void changePassphrase (String key , String displayName , CharSequence passphrase ) throws KeychainAccessException {
9280 try (SimpleCollection keyring = new SimpleCollection ()) {
0 commit comments