-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace usage of nimbusds Algorithm and Curve with our own enums #239
Conversation
…te AlgorithmId enum. probably wrong. very drafty
…ntly 1 test failing, investigating
…ve as params in crypto and did methods.
@JvmOverloads | ||
public fun from(curve: JwaCurve?, algorithm: Jwa? = null): AlgorithmId { | ||
return when (algorithm to curve) { | ||
// todo do i need to add the null algo or null curve cases? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nop! in fact can ditch algorithm
arg entirely
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left 2 comments. great work @jiyoontbd !
Co-authored-by: Moe Jangda <[email protected]>
…waCurve and using default enum keyword 'name'
…eded in getVerifier()
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #239 +/- ##
==========================================
- Coverage 80.04% 79.59% -0.46%
==========================================
Files 37 38 +1
Lines 2200 2220 +20
Branches 312 316 +4
==========================================
+ Hits 1761 1767 +6
- Misses 299 314 +15
+ Partials 140 139 -1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Looks great!
Co-authored-by: Moe Jangda <[email protected]>
…e-nimbusds-algo-curve
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving the AwsKeyManager changes.
Nice work.
Overview
Eliminating use of
Curve
andAlgorithm
fromnimbusds
dependency and instead using our own enumsJwaCurve
andJwa
, respectively. Adopting use ofAlgorithmId
which is a combination ofJwaCurve
andJwa
.This PR is the first step to remove dependency on the nimbusds library and preventing exposing their types through our public API surface.
Description
Impact
AlgorithmId
instead of nimbus Algorithm and nimbus Curve.Follow up tasks
How Has This Been Tested?
Checklist
Before submitting this PR, please make sure:
References
JWA spec