Repository navigation
refactor: move crypto out of DaprClientImpl - #1914
javier-aliaga merged 1 commit into
Conversation
Signed-off-by: Javier Aliaga <javier@diagrid.io>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified, and the change preserves the existing public API while extracting the streaming cryptography implementation into a dedicated client.
No open issues 🎉
What changed in this PR
This pull request extracts the alpha cryptography streaming implementation from DaprClientImpl into a package-private DaprCryptoClient while preserving the existing public API and behavior.
Changes:
- Added
DaprCryptoClientfor streaming encryption and decryption. - Initialized the crypto client in
DaprClientImpl. - Updated the public cryptography methods to delegate to the extracted client.
| File | Description |
|---|---|
| sdk/src/main/java/io/dapr/client/DaprCryptoClient.java | Contains the extracted streaming encryption and decryption implementations. |
| sdk/src/main/java/io/dapr/client/DaprClientImpl.java | Initializes the crypto client and delegates the public cryptography methods to it. |
Review effort: Lite
|
@javier-aliaga it seems that coverage might need some ❤️ 😄 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1914 +/- ##
============================================
- Coverage 82.66% 82.63% -0.04%
- Complexity 3952 3954 +2
============================================
Files 354 355 +1
Lines 11935 11941 +6
Branches 1339 1339
============================================
+ Hits 9866 9867 +1
- Misses 1561 1567 +6
+ Partials 508 507 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Description
Seventh step of splitting
DaprClientImplinto package-private classes, one per building block. This PR moves the cryptography API (alpha).DaprCryptoClientholds the streamingencryptanddecryptmethods. The bodies are unchanged.DaprClientImplkeep their signatures and Javadoc, and delegate in one line.DaprClientImplgoes from 1,516 to 1,339 lines.Issue reference
Part of #1875
Checklist
DaprPreviewClientGrpcTestcovers encrypt and decrypt through the public methods. The 670sdkunit tests pass unchanged.