signature = new ShaHmac256WithRsaSignature(); $this->credential = $credential; $this->uri = $this->uri->withHost('sts.ap-northeast-1.aliyuncs.com'); $this->options['verify'] = false; $this->options['query']['Version'] = '2015-04-01'; $this->options['query']['Action'] = 'GenerateSessionAccessKey'; $this->options['query']['RegionId'] = 'cn-hangzhou'; $this->options['query']['AccessKeyId'] = $credential->getPublicKeyId(); $this->options['query']['PublicKeyId'] = $credential->getPublicKeyId(); $this->options['query']['DurationSeconds'] = Provider::DURATION_SECONDS; } }