Skip to content

Commit

Permalink
Merge pull request #282 from walt-id/271-ssikit-integrate-ebsi-truste…
Browse files Browse the repository at this point in the history
…d-accreditation-registry

271 ssikit integrate ebsi trusted accreditation registry
  • Loading branch information
mikeplotean authored Apr 4, 2023
2 parents 3bd029f + d3855ef commit b0fbf52
Show file tree
Hide file tree
Showing 33 changed files with 803 additions and 407 deletions.
11 changes: 6 additions & 5 deletions src/main/kotlin/id/walt/auditor/PolicyRegistryService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import com.beust.klaxon.JsonObject
import com.beust.klaxon.Klaxon
import id.walt.auditor.dynamic.DynamicPolicy
import id.walt.auditor.dynamic.DynamicPolicyArg
import id.walt.auditor.policies.*
import id.walt.common.resolveContent
import id.walt.model.dif.PresentationDefinition
import id.walt.servicematrix.ServiceProvider
Expand Down Expand Up @@ -139,15 +140,15 @@ open class PolicyRegistryService: WaltIdService() {
open fun initPolicies() {
register(SignaturePolicy::class, "Verify by signature")
register(JsonSchemaPolicy::class, JsonSchemaPolicyArg::class, "Verify by JSON schema")
register(TrustedSchemaRegistryPolicy::class, "Verify by EBSI Trusted Schema Registry")
register(TrustedIssuerDidPolicy::class, "Verify by trusted issuer did")
register(EbsiTrustedSchemaRegistryPolicy::class, "Verify by EBSI Trusted Schema Registry")
register(EbsiTrustedIssuerDidPolicy::class, "Verify by trusted issuer did")
PolicyRegistry.register(
TrustedIssuerRegistryPolicy::class,
TrustedIssuerRegistryPolicyArg::class,
EbsiTrustedIssuerRegistryPolicy::class,
EbsiTrustedIssuerRegistryPolicyArg::class,
"Verify by an EBSI Trusted Issuers Registry compliant api.",
true
)
register(TrustedSubjectDidPolicy::class, "Verify by trusted subject did")
register(EbsiTrustedSubjectDidPolicy::class, "Verify by trusted subject did")
register(IssuedDateBeforePolicy::class, "Verify by issuance date")
register(ValidFromBeforePolicy::class, "Verify by valid from")
register(ExpirationDateAfterPolicy::class, "Verify by expiration date")
Expand Down
Loading

0 comments on commit b0fbf52

Please sign in to comment.