Skip to content
Open
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 @@ -17,6 +17,7 @@
package org.springframework.security.crypto.password;

import org.jspecify.annotations.Nullable;
import org.springframework.lang.Contract;

/**
* Service interface for encoding passwords.
Expand All @@ -36,6 +37,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")
@Nullable String encode(@Nullable CharSequence rawPassword);

/**
Expand Down