@Test void updateReadKeyPassword() { tested.updateReadKeyPassword(user, readKeyPassword); verify(privateKeyService, never()).validateUserHasAccessOrThrow(user); verify(keyStoreOper).updateReadKeyPassword(user, readKeyPassword); }
@Override public void updateReadKeyPassword(UserIDAuth forUser, ReadKeyPassword newPassword) { log.debug("Update read key for profile {}", forUser.getUserID()); keyStoreOper.updateReadKeyPassword(forUser, newPassword); storageKeyStoreOper.updateReadKeyPassword(forUser, newPassword); }
ProfileUpdatingServiceImpl implements ProfileUpdatingService { @Override public void updateReadKeyPassword(UserIDAuth forUser, ReadKeyPassword newPassword) { log.debug("Update read key for profile {}", forUser.getUserID()); keyStoreOper.updateReadKeyPassword(forUser, newPassword); storageKeyStoreOper.updateReadKeyPassword(forUser, newPassword); } }
ProfileUpdatingServiceImpl implements ProfileUpdatingService { @Override public void updateReadKeyPassword(UserIDAuth forUser, ReadKeyPassword newPassword) { log.debug("Update read key for profile {}", forUser.getUserID()); keyStoreOper.updateReadKeyPassword(forUser, newPassword); storageKeyStoreOper.updateReadKeyPassword(forUser, newPassword); } @Inject  ProfileUpdatingServiceImpl(ProfileStoreService storeService, PrivateKeyService privateKeyService,
                                      StorageKeyStoreOperations storageKeyStoreOper,
                                      DocumentKeyStoreOperations keyStoreOper); }
ProfileUpdatingServiceImpl implements ProfileUpdatingService { @Override public void updateReadKeyPassword(UserIDAuth forUser, ReadKeyPassword newPassword) { log.debug("Update read key for profile {}", forUser.getUserID()); keyStoreOper.updateReadKeyPassword(forUser, newPassword); storageKeyStoreOper.updateReadKeyPassword(forUser, newPassword); } @Inject  ProfileUpdatingServiceImpl(ProfileStoreService storeService, PrivateKeyService privateKeyService,
                                      StorageKeyStoreOperations storageKeyStoreOper,
                                      DocumentKeyStoreOperations keyStoreOper); @Override @SneakyThrows void updatePublicProfile(UserIDAuth forUser, UserPublicProfile profile); @Override void updatePrivateProfile(UserIDAuth forUser, UserPrivateProfile profile); @Override void updateReadKeyPassword(UserIDAuth forUser, ReadKeyPassword newPassword); }
ProfileUpdatingServiceImpl implements ProfileUpdatingService { @Override public void updateReadKeyPassword(UserIDAuth forUser, ReadKeyPassword newPassword) { log.debug("Update read key for profile {}", forUser.getUserID()); keyStoreOper.updateReadKeyPassword(forUser, newPassword); storageKeyStoreOper.updateReadKeyPassword(forUser, newPassword); } @Inject  ProfileUpdatingServiceImpl(ProfileStoreService storeService, PrivateKeyService privateKeyService,
                                      StorageKeyStoreOperations storageKeyStoreOper,
                                      DocumentKeyStoreOperations keyStoreOper); @Override @SneakyThrows void updatePublicProfile(UserIDAuth forUser, UserPublicProfile profile); @Override void updatePrivateProfile(UserIDAuth forUser, UserPrivateProfile profile); @Override void updateReadKeyPassword(UserIDAuth forUser, ReadKeyPassword newPassword);  }