Interface PasswordEncoder
- All Known Implementing Classes:
PasswordEncoder.Pbkdf2
public interface PasswordEncoder
One-way password hashing.
pbkdf2() unless another is configured.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionencode(CharSequence password) booleanmatches(CharSequence password, String encoded) Constant-time;falsefor anything this encoder did not produce.static PasswordEncoderpbkdf2()PBKDF2-HMAC-SHA256, 600,000 iterations (OWASP 2023), a random 16-byte salt — JDK only.
-
Method Details
-
encode
-
matches
Constant-time;falsefor anything this encoder did not produce. -
pbkdf2
PBKDF2-HMAC-SHA256, 600,000 iterations (OWASP 2023), a random 16-byte salt — JDK only.
-