first commit

This commit is contained in:
2024-04-01 09:54:43 +08:00
commit 899d816bc3
795 changed files with 130040 additions and 0 deletions

26
lib/Auth/Signer.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
namespace Yeepay\Yop\Sdk\Auth;
use Yeepay\Yop\Sdk\Http\YopHttpResponse;
use Yeepay\Yop\Sdk\Internal\Request;
interface Signer
{
/**
* @param Request $request
* @param YopRsaCredentials|null $credentials
* @param SignOptions|null $options
*/
public function sign(Request $request, YopRsaCredentials $credentials = null, SignOptions $options = null);
/**
* @param YopHttpResponse $httpResponse
* @param string $signature
* @param resource $publicKey
* @param SignOptions $options
*/
public function checkSignature(YopHttpResponse $httpResponse, $signature, $publicKey, SignOptions $options);
}