client-certificate-auth API Reference
client-certificate-auth API Reference / extractor / validateExtractorOptions
Function: validateExtractorOptions()
validateExtractorOptions(
options?):void
Defined in: extractor.js:58
Validate options shared by extractClientCertificate and the middleware constructor. Throws on misconfiguration: an unknown preset or encoding, a header-name option that is not a non-empty string, a flag that is not a boolean, certificateHeader without an encoding source, chainHeader or verifyHeader without a leaf header source, or only one of verifyHeader/verifyValue. Omitted or undefined options are treated as the empty object; any other non-object value, null and arrays among them, throws a TypeError.
Parameters
options?
ExtractorOptions = {}
Returns
void
Throws
when options are malformed