Bagikan melalui


BasicAuthenticationCredentials class

Konstruktor

BasicAuthenticationCredentials(string, string, string)

Membuat objek BasicAuthenticationCredentials baru.

Properti

authorizationScheme
password
userName

Metode

signRequest(WebResourceLike)

Menandatangani permintaan dengan header Autentikasi.

Detail Konstruktor

BasicAuthenticationCredentials(string, string, string)

Membuat objek BasicAuthenticationCredentials baru.

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

Parameter

userName

string

nama pengguna.

password

string

Kata Sandi.

authorizationScheme

string

Skema otorisasi.

Detail Properti

authorizationScheme

authorizationScheme: string

Nilai Properti

string

password

password: string

Nilai Properti

string

userName

userName: string

Nilai Properti

string

Detail Metode

signRequest(WebResourceLike)

Menandatangani permintaan dengan header Autentikasi.

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

Parameter

webResource
WebResourceLike

WebResourceLike yang akan ditandatangani.

Mengembalikan

Promise<WebResourceLike>

Objek permintaan yang ditandatangani.