BasicAuthenticationCredentials class

Konstruktory

BasicAuthenticationCredentials(string, string, string)

Vytvoří nový objekt BasicAuthenticationCredentials.

Vlastnosti

authorizationScheme
password
userName

Metody

signRequest(WebResourceLike)

Podepíše žádost hlavičkou Ověřování.

Podrobnosti konstruktoru

BasicAuthenticationCredentials(string, string, string)

Vytvoří nový objekt BasicAuthenticationCredentials.

new BasicAuthenticationCredentials(userName: string, password: string, authorizationScheme?: string)

Parametry

userName

string

Uživatelské jméno.

password

string

Heslo.

authorizationScheme

string

Schéma autorizace.

Podrobnosti vlastnosti

authorizationScheme

authorizationScheme: string

Hodnota vlastnosti

string

password

password: string

Hodnota vlastnosti

string

userName

userName: string

Hodnota vlastnosti

string

Podrobnosti metody

signRequest(WebResourceLike)

Podepíše žádost hlavičkou Ověřování.

function signRequest(webResource: WebResourceLike): Promise<WebResourceLike>

Parametry

webResource
WebResourceLike

WebResourceLike k podepsání.

Návraty

Promise<WebResourceLike>

Objekt podepsaného požadavku.