update PasswordEncoder declaration

This commit is contained in:
Talerngpong Virojwutikul 2022-03-01 21:37:31 +07:00 committed by Josh Cummings
parent 3aa7a65cb4
commit ff15bec02d
1 changed files with 5 additions and 2 deletions

View File

@ -198,10 +198,13 @@ The password package of the spring-security-crypto module provides support for e
[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;
}
}
----