From acda921fe98abbcccd9b957096c7268428418ba9 Mon Sep 17 00:00:00 2001 From: Talerngpong Virojwutikul Date: Tue, 1 Mar 2022 21:37:31 +0700 Subject: [PATCH] Update PasswordEncoder declaration Closes gh-10910 --- .../ROOT/pages/features/integrations/cryptography.adoc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/modules/ROOT/pages/features/integrations/cryptography.adoc b/docs/modules/ROOT/pages/features/integrations/cryptography.adoc index 5553b51110..83d7cd3fc1 100644 --- a/docs/modules/ROOT/pages/features/integrations/cryptography.adoc +++ b/docs/modules/ROOT/pages/features/integrations/cryptography.adoc @@ -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; + } } ---- ====