java-sdk
java-sdk copied to clipboard
Add Cryptography APIs to the Java SDK
Description
Implements the Cryptography Alpha1 API (EncryptAlpha1/DecryptAlpha1) for the Dapr Java SDK, enabling streaming encryption and decryption operations using Dapr's cryptography building block.
Changes
- Added
EncryptRequestAlpha1andDecryptRequestAlpha1domain objects with fluent setters - Added
encrypt()anddecrypt()methods toDaprPreviewClientinterface - Implemented streaming gRPC bidirectional communication in
DaprClientImpl - Added unit tests for domain objects
- Added integration tests using Testcontainers with local storage crypto component
Issue reference
Closes #1073
Checklist
- [x] Code compiles correctly
- [x] Created/updated tests
- [x] Extended the documentation
Codecov Report
:x: Patch coverage is 85.10638% with 21 lines in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 78.82%. Comparing base (d759c53) to head (bb8a9d4).
:warning: Report is 242 commits behind head on master.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| ...k/src/main/java/io/dapr/client/DaprClientImpl.java | 81.41% | 14 Missing and 7 partials :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## master #1599 +/- ##
============================================
+ Coverage 76.91% 78.82% +1.90%
- Complexity 1592 1996 +404
============================================
Files 145 219 +74
Lines 4843 6111 +1268
Branches 562 676 +114
============================================
+ Hits 3725 4817 +1092
- Misses 821 946 +125
- Partials 297 348 +51
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.