Skip to content

Commit 440ffce

Browse files
talerngpongjzheaux
authored andcommitted
Update PasswordEncoder declaration
Closes gh-10910
1 parent 4787156 commit 440ffce

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/modules/ROOT/pages/features/integrations/cryptography.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)