UNPKG

991 BTypeScriptView Raw
1import { WebResourceLike } from "../webResource";
2import { ServiceClientCredentials } from "./serviceClientCredentials";
3export declare class BasicAuthenticationCredentials implements ServiceClientCredentials {
4 userName: string;
5 password: string;
6 authorizationScheme: string;
7 /**
8 * Creates a new BasicAuthenticationCredentials object.
9 *
10 * @constructor
11 * @param {string} userName User name.
12 * @param {string} password Password.
13 * @param {string} [authorizationScheme] The authorization scheme.
14 */
15 constructor(userName: string, password: string, authorizationScheme?: string);
16 /**
17 * Signs a request with the Authentication header.
18 *
19 * @param {WebResourceLike} webResource The WebResourceLike to be signed.
20 * @returns {Promise<WebResourceLike>} The signed request object.
21 */
22 signRequest(webResource: WebResourceLike): Promise<WebResourceLike>;
23}
24//# sourceMappingURL=basicAuthenticationCredentials.d.ts.map
\No newline at end of file