Skip to content

Commit acda921

Browse files
talerngpongjzheaux
authored andcommitted
Update PasswordEncoder declaration
Closes gh-10910
1 parent 6f35364 commit acda921

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
@@ -202,10 +202,13 @@ The password package of the `spring-security-crypto` module provides support for
202202
[source,java]
203203
----
204204
public interface PasswordEncoder {
205+
String encode(CharSequence rawPassword);
205206
206-
String encode(String rawPassword);
207+
boolean matches(CharSequence rawPassword, String encodedPassword);
207208
208-
boolean matches(String rawPassword, String encodedPassword);
209+
default boolean upgradeEncoding(String encodedPassword) {
210+
return false;
211+
}
209212
}
210213
----
211214
====

0 commit comments

Comments
 (0)