-
Notifications
You must be signed in to change notification settings - Fork 285
feat: support BitStringStatusList #4427
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
feat: support BitStringStatusList #4427
Conversation
| public Duration ttl() { | ||
| var ttl = ofNullable(credentialSubject.get(0).getClaim(BITSTRING_STATUS_LIST_PREFIX, BITSTRING_TTL_LITERAL)) | ||
| .map(String::valueOf) | ||
| .map(Long::parseLong) |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException
|
|
||
| instance.statusListIndex = ofNullable(status.getProperty(BITSTRING_STATUS_LIST_PREFIX, BITSTRING_STATUS_LIST_INDEX_LITERAL)) | ||
| .map(Object::toString) | ||
| .map(Integer::parseInt) |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException
|
|
||
| var size = ofNullable(status.getProperty(BITSTRING_STATUS_LIST_PREFIX, STATUS_LIST_SIZE)) | ||
| .map(Object::toString) | ||
| .map(Integer::parseInt); |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException
|
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #4427 +/- ##
==========================================
+ Coverage 71.74% 75.03% +3.29%
==========================================
Files 919 1082 +163
Lines 18457 21628 +3171
Branches 1037 1193 +156
==========================================
+ Hits 13242 16229 +2987
- Misses 4756 4871 +115
- Partials 459 528 +69 ☔ View full report in Codecov by Sentry. |
What this PR changes/adds
This PR Adds support for BitStringStatusList revocation lists.
Why it does that
StatusList2021 was deprecated, and the spec group recommends the use of BitStringStatusList
Further notes
credentialStatus.typefieldcredentialStatus.type, the credential is deemed valid (but a warning is logged)credentialStatusentry, the credential is deemed validLimitations
statusSizeof 1 is supported. Technically, this fulfills conformance requirements and can be improved in future iterations. Note that supporting other status sizes will require a re-engineering of ourBitStringimplementation!Linked Issue(s)
Closes #4357
Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.