Megosztás a következőn keresztül:


BasicAuthenticationCredentials class

Konstruktorok

BasicAuthenticationCredentials(string, string, string)

Létrehoz egy új BasicAuthenticationCredentials objektumot.

Tulajdonságok

authorizationScheme
password
userName

Metódusok

signRequest(WebResourceLike)

Aláír egy kérést a Hitelesítés fejléccel.

Konstruktor adatai

BasicAuthenticationCredentials(string, string, string)

Létrehoz egy új BasicAuthenticationCredentials objektumot.

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

Paraméterek

userName

string

A felhasználó neve.

password

string

Jelszó.

authorizationScheme

string

Az engedélyezési séma.

Tulajdonság adatai

authorizationScheme

authorizationScheme: string

Tulajdonság értéke

string

password

password: string

Tulajdonság értéke

string

userName

userName: string

Tulajdonság értéke

string

Metódus adatai

signRequest(WebResourceLike)

Aláír egy kérést a Hitelesítés fejléccel.

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

Paraméterek

webResource
WebResourceLike

Az aláírandó WebResourceLike.

Válaszok

Promise<WebResourceLike>

Az aláírt kérelemobjektum.