* * * * @var string */ public $response; /** * This should be MD5, since we only allow this one. * * You should safely ignore this property. * * @var string */ public $algorithm; /** * The qop field of the request. * * @var string */ public $qualityOfProtection; /** * Serial number of the request (nc header field). * * @var string */ public $nonceCount; /** * Request nonce generated by client (cnonce header field). * * @var string */ public $clientNonce; /** * Opaque value. * * Generated by the server and re-submitted by the client as is, to verify * correct communication. * * @var string */ public $opaque; /** * Creates a new credential struct for digest authentication. * * Receives the information stored in the digest authentication header. See * attributes for further details. * * @param string $requestMethod * @param string $username * @param string $realm * @param string $nonce * @param string $uri * @param string $response * @param string $algorithm * @param string $qualityOfProtection * @param string $nonceCount * @param string $clientNonce * @param string $opaque */ public function __construct( $requestMethod = '', $username = '', $realm = '', $nonce = '', $uri = '', $response = '', $algorithm = 'MD5', $qualityOfProtection = null, $nonceCount = null, $clientNonce = null, $opaque = null ) { parent::__construct( $username ); $this->requestMethod = $requestMethod; $this->realm = $realm; $this->nonce = $nonce; $this->uri = $uri; $this->response = $response; $this->algorithm = $algorithm; $this->qualityOfProtection = $qualityOfProtection; $this->nonceCount = $nonceCount; $this->clientNonce = $clientNonce; $this->opaque = $opaque; } } ?>