BasicAuthenticationCredentials class
Konstruktorok
| Basic |
Létrehoz egy új BasicAuthenticationCredentials objektumot. |
Tulajdonságok
| authorization |
|
| password | |
| user |
Metódusok
| sign |
A hitelesítés fejlécével aláír egy kérelmet. |
Konstruktor adatai
BasicAuthenticationCredentials(string, string, string)
Létrehoz egy új BasicAuthenticationCredentials objektumot.
new BasicAuthenticationCredentials(userName: string, password: string, authorizationScheme?: string)
Paraméterek
- userName
-
string
Felhasználónév.
- 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)
A hitelesítés fejlécével aláír egy kérelmet.
function signRequest(webResource: WebResourceLike): Promise<WebResourceLike>
Paraméterek
- webResource
- WebResourceLike
Az aláírandó WebResourceLike.
Válaszok
Promise<WebResourceLike>
Az aláírt kérelemobjektum.