Skip to content

Commit

Permalink
Update sd-jwt library to v0.10.0 (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzarras authored Dec 23, 2024
1 parent 902e79a commit 2203394
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ kotlinxSerialization = "1.7.3"
ktlint = "0.50.0"
nimbusJoseJwt = "9.41.2"
nimbusOAuth2 = "11.20"
eudiSdJwt = "0.9.0"
eudiSdJwt = "0.10.0"
bouncyCastle = "1.78.1"
dependencyCheck = "10.0.4"
sonarqube = "5.1.0.4882"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class EncodePidInSdJwtVc(
exp = calculateExpiresAt(at),
nbf = calculateNotUseBefore?.let { calculate -> calculate(at) },
)
val issuedSdJwt: SdJwt.Issuance<SignedJWT> = issuer.issue(sdJwtSpec).getOrElse {
val issuedSdJwt: SdJwt<SignedJWT> = issuer.issue(sdJwtSpec).getOrElse {
raise(Unexpected("Error while creating SD-JWT", it))
}
if (log.isInfoEnabled) {
Expand Down Expand Up @@ -219,7 +219,7 @@ private fun Pid.oidcAddressClaim(): OidcAddressClaim? =
private object Printer {
val json = Json { prettyPrint = true }
private fun JsonElement.pretty(): String = json.encodeToString(this)
fun SdJwt.Issuance<SignedJWT>.prettyPrint(): String {
fun SdJwt<SignedJWT>.prettyPrint(): String {
var str = "\nSD-JWT with ${disclosures.size} disclosures\n"
disclosures.forEach { d ->
val kind = when (d) {
Expand Down

0 comments on commit 2203394

Please sign in to comment.