requireTrustPath

fun requireTrustPath(registry: TrustRegistry, maxPathLength: Int = 3)

Deprecated

Does not search for a trust path and ignores maxPathLength; it only checks the issuer is a trust anchor.

Replace with

requireTrust(registry)

Despite its name this does not search for a trust path and ignores maxPathLength: it is exactly requireTrust, i.e. the issuer must be a trust anchor of registry (for the credential's types). A path search needs a verifier identity, which this builder does not have, so the depth limit cannot be honoured; use requireTrust, or call TrustRegistry.findTrustPath yourself and enforce your own limit.

Parameters

registry

The trust registry to check against

maxPathLength

Ignored.