build(deps): bump org.passay:passay from 1.6.6 to 2.0.0 with API migration#8529
build(deps): bump org.passay:passay from 1.6.6 to 2.0.0 with API migration#8529
Conversation
Bumps [org.passay:passay](https://github.com/vt-middleware/passay) from 1.6.6 to 2.0.0. - [Release notes](https://github.com/vt-middleware/passay/releases) - [Commits](vt-middleware/passay@v1.6.6...v2.0.0) --- updated-dependencies: - dependency-name: org.passay:passay dependency-version: 2.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Dependency ReviewThe following issues were found:
Snapshot WarningsEnsure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice. License Issuesservice.impl/pom.xml
OpenSSF Scorecard
Scanned Files
|
|
@copilot analyse and fix all issues v2 contains many API breaking changes which were introduced to support new features and improve extensibility. The following list is not comprehensive, but are likely the most impactful: Setters removed on many classes in favor of constructor parameters CodeQL / Analyze (java) (pull_request) |
…dValidator, ValidationResult Agent-Logs-Url: https://github.com/Hack23/cia/sessions/ba05ff3c-f514-4f49-a00a-510aec895c27 Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
|
Fixed all passay 2.0.0 API breaking changes in commit Package migrations:
API changes:
Module system:
5 files changed across |
📚 Javadoc GeneratedThe Javadoc documentation has been generated for this PR. Download the |



Description
Bumps org.passay:passay from 1.6.6 to 2.0.0 and migrates all usages to the new v2 API.
Passay 2.0.0 contains many breaking API changes including package reorganization, interface changes, and new constructor patterns. This PR updates all affected source files to use the new API.
Migration Summary
Package migrations:
org.passay.CharacterRule→org.passay.rule.CharacterRuleorg.passay.LengthRule→org.passay.rule.LengthRuleorg.passay.WhitespaceRule→org.passay.rule.WhitespaceRuleorg.passay.EnglishCharacterData→org.passay.data.EnglishCharacterDataorg.passay.PasswordGenerator→org.passay.generate.PasswordGeneratorAPI changes:
new PasswordValidator(...)→new DefaultPasswordValidator(...)(PasswordValidatoris now an interface)RuleResult→ValidationResult(new return type fromvalidate())passwordValidator.getMessages(result)→result.getMessages()(messages now on result object)PasswordGeneratorconstructor now takes(int length, Rule...),generate()returnsUnicodeStringModule system:
requires passay→requires org.passayin bothmodule-info.javafiles (newAutomatic-Module-Name)Files Changed
service.impl/.../ChangePasswordService.java— imports,DefaultPasswordValidator,ValidationResultservice.impl/.../RegisterUserService.java— imports,DefaultPasswordValidator,ValidationResultcitizen-intelligence-agency/.../TestUtils.java— imports,PasswordGeneratorAPIservice.impl/src/main/java/module-info.java— module name updatecitizen-intelligence-agency/src/main/java/module-info.java— module name updateType of Change
Primary Changes
Political Analysis
Technical Changes
Impact Analysis
Political Analysis Impact
Technical Impact
org.passay:passay1.6.6 → 2.0.0 (major version bump with breaking API changes)Testing
Full project compiles successfully. All 38 unit tests in
service.implpass. Javadoc generates cleanly. CodeQL security scan reports 0 alerts.Documentation
Module declarations updated in both
module-info.javafiles to reflect new module name.Screenshots
N/A — no UI changes
Related Issues
Related to dependency maintenance and security posture
Checklist
Additional Notes
The passay 2.0.0 release reorganizes classes into sub-packages (
org.passay.rule.*,org.passay.data.*,org.passay.generate.*), changesPasswordValidatorfrom a class to an interface (withDefaultPasswordValidatoras the implementation), and changes the validation return type fromRuleResulttoValidationResultwhich now carries messages directly.Security Considerations
Password validation rules are unchanged — the same strength requirements (length, character classes, no whitespace) are enforced with the updated API.
Release Notes
Upgraded passay password validation library from 1.6.6 to 2.0.0, migrating all usages to the new v2 API including updated package structure,
DefaultPasswordValidatorimplementation, andValidationResultreturn type.