Skip to content

Commit 0ae6e6e

Browse files
talerngpongjzheaux
authored andcommitted
Update PasswordEncoder declaration
Closes gh-10910
1 parent 2f25c03 commit 0ae6e6e

File tree

1 file changed

+5
-2
lines changed
  • docs/manual/src/docs/asciidoc/_includes/servlet/crypto

1 file changed

+5
-2
lines changed

docs/manual/src/docs/asciidoc/_includes/servlet/crypto/index.adoc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,13 @@ The password package of the spring-security-crypto module provides support for e
198198
[source,java]
199199
----
200200
public interface PasswordEncoder {
201+
String encode(CharSequence rawPassword);
201202
202-
String encode(String rawPassword);
203+
boolean matches(CharSequence rawPassword, String encodedPassword);
203204
204-
boolean matches(String rawPassword, String encodedPassword);
205+
default boolean upgradeEncoding(String encodedPassword) {
206+
return false;
207+
}
205208
}
206209
----
207210

0 commit comments

Comments
 (0)