Installation
npm install --save @types/sasl-digest-md5
Summary
This package contains type definitions for sasl-digest-md5 (https://github.com/jaredhanson/js-sasl-digest-md5).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sasl-digest-md5.
index.d.ts
import { Mechanism } from "saslmechanisms";
export = DigestMd5Mechanism;
declare class DigestMd5Mechanism implements Mechanism {
static Mechanism: typeof DigestMd5Mechanism;
static prototype: {
name: "DIGEST-MD5";
clientFirst: false;
};
name: "DIGEST-MD5";
clientFirst: false;
constructor(options?: DigestMd5Mechanism.Options);
response(cred: DigestMd5Mechanism.Credentials): string;
challenge(chal: string): this;
}
declare namespace DigestMd5Mechanism {
interface Options {
genNonce?: (() => number) | undefined;
}
interface Credentials {
serviceType: string;
host: string;
username: string;
password: string;
serviceName?: string | undefined;
realm?: string | undefined;
authzid?: string | undefined;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/saslmechanisms
Credits
These definitions were written by BendingBender.