Skip to content

Function: toVerifier() ​

ts
function toVerifier(policy): HostKeyVerifier;

Defined in: netconf/src/transport/host-keys.ts:76

Turn a policy into a verifier.

Parameters ​

policy ​

| readonly string[] | HostKeyVerifier | string & object

Returns ​

HostKeyVerifier

Throws ​

TypeError for strings that are neither fingerprints nor key lines.

Released under the MIT Licence.