Strophe.js
    Preparing search index...

    Variable defaultConst

    default: {
        clientChallenge(connection: default, test_cnonce?: string): string;
        scramResponse(
            connection: default,
            challenge: string,
            hashName: string,
            hashBits: number,
        ): Promise<string | false>;
        supported(): boolean;
    } = ...

    Type Declaration

    • clientChallenge: function
      • Returns a string containing the client first message

        Parameters

        • connection: default
        • Optionaltest_cnonce: string

        Returns string

    • scramResponse: function
      • On success, sets connection_sasl_data["server-signature"] and connection._sasl_data.keys

        The server signature should be verified after this function completes..

        On failure, returns connection._sasl_failure_cb();

        Parameters

        • connection: default
        • challenge: string
        • hashName: string
        • hashBits: number

        Returns Promise<string | false>

    • supported: function
      • Whether the Web Crypto SubtleCrypto API that SCRAM relies on is available.

        Returns boolean