添加网站文件
This commit is contained in:
30
vendor/alibabacloud/client/src/Clients/AccessKeyClient.php
vendored
Normal file
30
vendor/alibabacloud/client/src/Clients/AccessKeyClient.php
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace AlibabaCloud\Client\Clients;
|
||||
|
||||
use AlibabaCloud\Client\Exception\ClientException;
|
||||
use AlibabaCloud\Client\Signature\ShaHmac1Signature;
|
||||
use AlibabaCloud\Client\Credentials\AccessKeyCredential;
|
||||
|
||||
/**
|
||||
* Use the AccessKey to complete the authentication.
|
||||
*
|
||||
* @package AlibabaCloud\Client\Clients
|
||||
*/
|
||||
class AccessKeyClient extends Client
|
||||
{
|
||||
|
||||
/**
|
||||
* @param string $accessKeyId
|
||||
* @param string $accessKeySecret
|
||||
*
|
||||
* @throws ClientException
|
||||
*/
|
||||
public function __construct($accessKeyId, $accessKeySecret)
|
||||
{
|
||||
parent::__construct(
|
||||
new AccessKeyCredential($accessKeyId, $accessKeySecret),
|
||||
new ShaHmac1Signature()
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user