17 lines
432 B
PHP
17 lines
432 B
PHP
<?php
|
|
require_once(dirname(__FILE__) . "/AuthenticationUtil.php");
|
|
require_once(dirname(__FILE__) . "/HeaderAuthentication.php");
|
|
|
|
class MashapeAuthentication extends HeaderAuthentication {
|
|
|
|
private $headers;
|
|
|
|
function __construct($publicKey, $privateKey) {
|
|
$this->headers = array(AuthenticationUtil::generateAuthenticationHeader($publicKey, $privateKey));
|
|
}
|
|
|
|
public function handleHeaders() {
|
|
return $this->headers;
|
|
}
|
|
}
|
|
?>
|