UNPKG

landstrasse

Version:

Strongly typed WAMP Client for browsers

22 lines (21 loc) 780 B
import type { AuthProviderInterface, Signature } from '../types/AuthProvider'; import type { WampDict } from '../types/messages/MessageTypes'; declare abstract class AbstractAuthProvider implements AuthProviderInterface { private readonly _authId; private readonly _authMethod; /** @inheritDoc */ get authId(): string; /** @inheritDoc */ get authMethod(): string; abstract get isTransportLevel(): boolean; /** * Creates a new instance. * * @param authId - The username to send to the server * @param authMethod - The authmethod to send to the server */ constructor(authId: string, authMethod: string); /** @inheritDoc */ computeChallenge(_: WampDict): Promise<Signature>; } export default AbstractAuthProvider;