GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

RsaKeyPairClient   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 14
ccs 4
cts 4
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace AlibabaCloud\Client\Clients;
4
5
use AlibabaCloud\Client\Exception\ClientException;
6
use AlibabaCloud\Client\Signature\ShaHmac1Signature;
7
use AlibabaCloud\Client\Credentials\RsaKeyPairCredential;
8
9
/**
10
 * Use the RSA key pair to complete the authentication (supported only on Japanese site)
11
 *
12
 * @package   AlibabaCloud\Client\Clients
13
 */
14
class RsaKeyPairClient extends Client
15
{
16
17
    /**
18
     * @param string $publicKeyId
19
     * @param string $privateKeyFile
20
     *
21
     * @throws ClientException
22
     */
23 16
    public function __construct($publicKeyId, $privateKeyFile)
24
    {
25 16
        parent::__construct(
26 16
            new RsaKeyPairCredential($publicKeyId, $privateKeyFile),
27 11
            new ShaHmac1Signature()
28 11
        );
29 11
    }
30
}
31