UNPKG

amt-manager-test

Version:

Intel AMT Management Tool - Control power states of AMT-enabled devices

25 lines (24 loc) 854 B
export interface AuthParams { realm: string; nonce: string; [key: string]: string; } export interface DigestOptions { url: string; username: string; password: string; method?: string; headers?: Record<string, string>; } export interface DigestHeaderOptions extends DigestOptions { retryCount?: number; maxRetries?: number; } export declare function parseAuthHeader(authHeader: string): AuthParams; export declare function constructDigestAuthHeader(authParams: AuthParams, options: DigestOptions): string; /** * Get a Digest Authentication header for a given URL and credentials * @param options Configuration options for digest authentication * @returns Promise resolving to the Digest Authorization header */ export declare function getDigestHeader(options: DigestHeaderOptions): Promise<string | undefined>;