uport-project / kotlin-did-jwt

Create and verify uPort and DID compliant JWTs in Kotlin
https://developer.uport.me
Apache License 2.0
8 stars 6 forks source link

Better management for StatusEntry an related errors #39

Open ugoamanoh opened 4 years ago

ugoamanoh commented 4 years ago

accept and use an optional StatusEntry param for checkStatus() to deduplicate parsing of credentials and to support verification of credentials that don't necessarily embed a status entry.

rethink exceptional cases to accommodate credentials that don't embed status, and create more informative errors for misconfigured status methods or malformed entries.

create and use a CredentialStatus implementation that is only used to signal a credential that doesn't declare a status checking method.

ugoamanoh commented 4 years ago

Implementation Notes