Indy 9
|
TIdDigestAuthentication = class(TIDAuthentication)
TIdDigestAuthentication is based on a challenge-response model, where a client responds to a nonce value using a message digest containing the Username, Password, Nonce, and Realm for the request. The default message digest algorithm for TIdDigestAuthentication is the MD5 algorithm.
TIdDigestAuthentication requires that a server challenge contain headers for WWW-Authenticate, Authorization, and Authorization-Info to allow proper operation of the authentication scheme. The client must construct a message digest containing the specified values, to be verified using the same algorithm on the server. The message digest is calculated using the following format and values:
Username:Realm:Password:Nonce
function Authentication: String; override;
Digest username="jdoe" realm="http://www.domain.com" result="00112233445566778899aabbccddeeff"
destructor Destroy; override;