Skip to content

Commit

Permalink
Update PasswordEncoder declaration
Browse files Browse the repository at this point in the history
Closes gh-10910
  • Loading branch information
talerngpong authored and jzheaux committed Mar 1, 2022
1 parent 2f25c03 commit 0ae6e6e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
----

Expand Down

0 comments on commit 0ae6e6e

Please sign in to comment.