增加摘要鉴权流程注释

master
lin 2025-03-13 14:20:50 +08:00
parent 5539f52d13
commit 1869945ff1
1 changed files with 10 additions and 1 deletions

View File

@ -156,8 +156,17 @@ public class DigestServerAuthenticationHelper {
}
/**
* Authenticate the inbound request given plain text password.
*
*
* A1 = username + ":" + realm + ":" + password
* A2 = REGISTER:URI
*
* HA1 = md5(A1)
* HA2 = md5(A2)
*
* KD = HA2:HA2:qop
*
* response = md5(KD)
* @param request - the request to authenticate.
* @param pass -- the plain text password.
*