0.1.4 • Published 7 months ago

@types/sasl-digest-md5 v0.1.4

Weekly downloads
3
License
MIT
Repository
github
Last release
7 months ago

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

// Type definitions for sasl-digest-md5 0.1
// Project: https://github.com/jaredhanson/js-sasl-digest-md5
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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.

0.1.2

8 months ago

0.1.4

7 months ago

0.1.3

7 months ago

0.1.1

3 years ago

0.1.0

5 years ago