Interface PasswordChangeResult
- All Known Implementing Classes:
PasswordChangeResult.Blocked, PasswordChangeResult.Conflict, PasswordChangeResult.CurrentPasswordRejected, PasswordChangeResult.NewPasswordRejected, PasswordChangeResult.NotFound, PasswordChangeResult.Succeeded
public sealed interface PasswordChangeResult
permits PasswordChangeResult.Succeeded, PasswordChangeResult.CurrentPasswordRejected, PasswordChangeResult.NewPasswordRejected, PasswordChangeResult.Blocked, PasswordChangeResult.Conflict, PasswordChangeResult.NotFound
Outcome of
PasswordChangeService.change(PasswordChangeCommand).
Sealed so adapters pattern-match exhaustively. Every failure variant collapses to a generic public response at the adapter boundary; the differentiated structural reason stays in audit (CWE-203 / CWE-209).
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordThe current lifecycle status forbids credential changes (e.g.static final recordA concurrent password change won the compare-and-swap race.static final recordRe-authentication failed — the supplied current password does not verify (CWE-620).static final recordThe new password violated the input policy (length, control chars, etc.) and was rejected before hashing.static final recordNo credential exists under the supplied username.static final recordPassword successfully changed.