requireTrustPath
Deprecated
Does not search for a trust path and ignores maxPathLength; it only checks the issuer is a trust anchor.
Replace with
requireTrust(registry)Content copied to clipboard
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.