Sdílet prostřednictvím


BasicAuthenticationCredentials class

Konstruktory

BasicAuthenticationCredentials(string, string, string)

Vytvoří nový objekt BasicAuthenticationCredentials.

Vlastnosti

authorizationScheme
password
userName

Metody

signRequest(WebResourceLike)

Podepíše požadavek 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 požadavek hlavičkou Ověřování.

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

Parametry

webResource
WebResourceLike

WebResourceLike, který se má podepsat.

Návraty

Promise<WebResourceLike>

Podepsaný objekt požadavku.