AuthenticationHeaderParser class
這是一個輔助類別,解析支援的 HTTP 回應認證標頭,以提取並回傳可用於基本授權流程之外的標頭挑戰值。
方法
| get |
此方法解析 SHR 一次性值,從 Authentication-Info 或 WWW-Authenticate 認證標頭中解析出來。 |
建構函式詳細資料
AuthenticationHeaderParser(Record<string, string>)
new AuthenticationHeaderParser(headers: Record<string, string>)
參數
- headers
-
Record<string, string>
方法詳細資料
getShrNonce()
此方法解析 SHR 一次性值,從 Authentication-Info 或 WWW-Authenticate 認證標頭中解析出來。
function getShrNonce(): string
傳回
string