Property | Type | Description | |
---|---|---|---|
$_authmsg | string | AuthMessage (RFC 5802 [3]). | |
$_hash | string | Hash name. | |
$_iterations | integer | Number of Hi iterations (RFC 5802 [2]). | |
$_nonce | string | Nonce. | |
$_pass | string | Password. | |
$_salt | string | Server salt. | |
$_serversig | string | Calculated server signature value. | |
$_user | string | Username. |
Method | Description | |
---|---|---|
__construct ( string $user, string $pass, string $hash = 'SHA1' ) | Constructor. | |
getClientFinalMessage ( ) : string | Return the final client message. | |
getClientFirstMessage ( ) : string | Return the initial client message. | |
parseServerFinalMessage ( string $msg ) : boolean | Process the final server message response. | |
parseServerFirstMessage ( string $msg ) : boolean | Process the initial server message response. |
public getClientFinalMessage ( ) : string | ||
return | string | Final client message. |
public getClientFirstMessage ( ) : string | ||
return | string | Initial client message. |
public parseServerFinalMessage ( string $msg ) : boolean | ||
$msg | string | Final server response. |
return | boolean | False if authentication failed. |
public parseServerFirstMessage ( string $msg ) : boolean | ||
$msg | string | Initial server response. |
return | boolean | False if authentication failed at this stage. |
protected string $_authmsg | ||
return | string |
protected int $_iterations | ||
return | integer |
protected string $_serversig | ||
return | string |