AbleCloud PHP SDK  1.8.x
PHP SDK of AbleCloud API
静态 Public 成员函数 | 所有成员列表
ACDeveloperSignature类 参考

静态 Public 成员函数

static signature ($developer, $context, $subDomain, $methodName, $timestamp, $timeout, $nonce)
 

详细描述

开发者签名工具。

成员函数说明

◆ signature()

static ACDeveloperSignature::signature (   $developer,
  $context,
  $subDomain,
  $methodName,
  $timestamp,
  $timeout,
  $nonce 
)
static

计算开发者的签名。

参数
$developerACDeveloper ACDeveloper对象,表示要生成其签名的开发者。
$contextACContext ACContext对象,表示访问AbleCloud远程服务的环境信息。
$subDomainstring 字符串。表示要访问的远程服务所属的子域的名字。可能为空字符串。
$methodNamestring 字符串。表示要访问的远程服务的方法名。
$timestampint 此次签名所示使用的时间戳。是以秒为单位的UTC时间。
$timeoutint 此次签名的有效时长(以秒为单位)。表示该签名在自$timestamp时刻起的$timeout秒之内有效。
$noncestring 此次签名所使用的随机字符串。
返回
string 返回表示签名结果的字符串。

该类的文档由以下文件生成: