ProofEngineProvider

SPI Provider for proof engines.

Allows automatic discovery of ProofEngine implementations via Java ServiceLoader.

ServiceLoader Registration: Create a file META-INF/services/org.trustweave.credential.spi.proof.ProofEngineProvider with the content:

com.example.MyProofEngineProvider

Example Usage:

class VcLdEngineProvider : ProofEngineProvider {
override val name = "vc-ld"

override fun create(options: Map<String, Any?>): ProofEngine? {
return VcLdProofEngine(options)
}

override val supportedFormatIds: List<ProofSuiteId>
get() = listOf(ProofSuiteId.VC_LD)
}

Note: this provider stays in :credentials:credential-api (JVM) because it produces ProofEngine instances, and ProofEngine itself references org.trustweave.did.resolver.DidResolver — which is not yet portable. Move both together when the DID resolver SPI is migrated.

Inheritors

Properties

Link copied to clipboard
abstract val name: String

Provider name (e.g., "vc-ld", "sd-jwt-vc").

Link copied to clipboard
abstract val supportedFormatIds: List<ProofSuiteId>

Supported proof suite IDs.

Functions

Link copied to clipboard
abstract fun create(options: Map<String, Any?> = emptyMap()): ProofEngine?

Creates a ProofEngine instance.