Update PasswordEncoder declaration

Closes gh-10910
This commit is contained in:
Talerngpong Virojwutikul 2022-03-01 21:37:31 +07:00 committed by Josh Cummings
parent 6f35364c5d
commit acda921fe9
1 changed files with 5 additions and 2 deletions

View File

@ -202,10 +202,13 @@ The password package of the `spring-security-crypto` module provides support for
[source,java]
----
public interface PasswordEncoder {
String encode(CharSequence rawPassword);
String encode(String rawPassword);
boolean matches(CharSequence rawPassword, String encodedPassword);
boolean matches(String rawPassword, String encodedPassword);
default boolean upgradeEncoding(String encodedPassword) {
return false;
}
}
----
====