From 5903f2dd9b7b264ada0d6edd0da45fdd5d4e96da Mon Sep 17 00:00:00 2001 From: "Michael J. Simons" Date: Fri, 16 Aug 2019 10:19:39 +0200 Subject: [PATCH] Fix UserDetailsPasswordService JavaDoc * Fix typo * Clarify that `newPassword` is already an encoded password --- .../core/userdetails/UserDetailsPasswordService.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/org/springframework/security/core/userdetails/UserDetailsPasswordService.java b/core/src/main/java/org/springframework/security/core/userdetails/UserDetailsPasswordService.java index 44b130c2d3..8aa6155d23 100644 --- a/core/src/main/java/org/springframework/security/core/userdetails/UserDetailsPasswordService.java +++ b/core/src/main/java/org/springframework/security/core/userdetails/UserDetailsPasswordService.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,10 +25,11 @@ public interface UserDetailsPasswordService { /** * Modify the specified user's password. This should change the user's password in the - * persistent user repository (datbase, LDAP etc). + * persistent user repository (database, LDAP etc). * * @param user the user to modify the password for - * @param newPassword the password to change to + * @param newPassword the password to change to, + * encoded by the configured {@code PasswordEncoder} * @return the updated UserDetails with the new password */ UserDetails updatePassword(UserDetails user, String newPassword);