@types/sasl-digest-md5
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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

Credits

These definitions were written by BendingBender.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/sasl-digest-md5

Weekly Downloads

2

Version

0.1.4

License

MIT

Unpacked Size

4.41 kB

Total Files

5

Last publish

Collaborators

  • types