Determine minimum and maximum match length.
This optimization is used in match for early rejection of input names that are either too short or too long.
Protected
buildProtected
computeProtected
matchRecognize part of the input name.
Iterable of potential matches.
Protected
Static
buildBuild part of an output name.
Iterable of potential constructions.
Protected
Static
match
Match or construct a KeyLocator or certificate name.
Remarks
To match a KeyLocator or certificate name, use a ConcatPattern that contains patterns to match the subject name, followed by a CertNamePattern at last. The captured variable contains the whole KeyLocator or certificate name that can be further recognized by CertNaming.parseKeyName and CertNaming.parseCertName.
Using the same ConcatPattern, the constructed name would be the subject name only. It can be passed to @ndn/keychain!KeyChain.getSigner to find a key/certificate.