Skip to content

(no-task): add configurable PinAdapter for encrypted/plain pin modes#49

Open
feeland3 wants to merge 3 commits into
developfrom
feature/pin-adapter
Open

(no-task): add configurable PinAdapter for encrypted/plain pin modes#49
feeland3 wants to merge 3 commits into
developfrom
feature/pin-adapter

Conversation

@feeland3

@feeland3 feeland3 commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

feeland3 added 3 commits July 2, 2026 12:37
Introduces PinAdapter/PinAdapterImpl, switchable via pin.security.mode
property (default: plain, encrypted uses BCrypt). Replaces direct
BCryptPasswordEncoder usage and plain .equals() checks across card
controllers and BankCardServiceImpl with the adapter, so both storage
modes coexist behind one property instead of forking the codebase.

Test fixtures switched from bcrypt hashes to plain pin values and
pin.security.mode=plain pinned explicitly in test-application.properties.
Checkstyle NewlineAtEndOfFile rule failed CI build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant