\AlibabaCloud\Client\Credentials\ProvidersRsaKeyPairProvider

Class RsaKeyPairProvider

Summary

Methods
Properties
Constants
__construct()
getCredentialsInCache()
get()
No public properties found
DURATION_SECONDS
key()
cache()
$credentialsCache
$expirationSlot
$client
$error
N/A
request()
No private properties found
N/A

Constants

DURATION_SECONDS

DURATION_SECONDS = 3600

For TSC Duration Seconds

Properties

$credentialsCache

$credentialsCache : array

Type

array

$expirationSlot

$expirationSlot : integer

Expiration time slot for temporary security credentials.

Type

integer

$error

$error : string

Type

string

Methods

getCredentialsInCache()

getCredentialsInCache() : array|null

Get the credentials from the cache in the validity period.

Returns

array|null

get()

get(integer  $timeout = \AlibabaCloud\Client\Request\Request::TIMEOUT, integer  $connectTimeout = \AlibabaCloud\Client\Request\Request::CONNECT_TIMEOUT) : \AlibabaCloud\Client\Credentials\StsCredential

Get credential.

Parameters

integer $timeout
integer $connectTimeout

Throws

\AlibabaCloud\Client\Exception\ClientException
\AlibabaCloud\Client\Exception\ServerException

Returns

\AlibabaCloud\Client\Credentials\StsCredential

key()

key() : string

Get the toString of the credentials as the key.

Returns

string

cache()

cache(array  $credential) 

Cache credentials.

Parameters

array $credential

request()

request(  $timeout,   $connectTimeout) : \AlibabaCloud\Client\Result\Result

Get credentials by request.

Parameters

$timeout
$connectTimeout

Throws

\AlibabaCloud\Client\Exception\ClientException
\AlibabaCloud\Client\Exception\ServerException

Returns

\AlibabaCloud\Client\Result\Result