Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

import org.jspecify.annotations.Nullable;

import org.springframework.lang.Contract;

/**
* Service interface for encoding passwords.
*
Expand All @@ -36,6 +38,7 @@ public interface PasswordEncoder {
* @return A non-null encoded password, unless the rawPassword was null in which case
* the result must be null.
*/
@Contract("null -> null; !null -> !null")
Comment thread
scordio marked this conversation as resolved.
@Nullable String encode(@Nullable CharSequence rawPassword);

/**
Expand Down
Loading