Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Rsa.php
Go to the documentation of this file.
1 <?php
23 #require_once 'Zend/Oauth/Signature/SignatureAbstract.php';
24 
26 #require_once 'Zend/Crypt/Rsa.php';
27 
35 {
44  public function sign(array $params, $method = null, $url = null)
45  {
46  $rsa = new Zend_Crypt_Rsa;
47  $rsa->setHashAlgorithm($this->_hashAlgorithm);
48  $sign = $rsa->sign(
49  $this->_getBaseSignatureString($params, $method, $url),
50  $this->_key,
52  );
53  return $sign;
54  }
55 
61  protected function _assembleKey()
62  {
64  }
65 }
sign(array $params, $method=null, $url=null)
Definition: Rsa.php:44
const BASE64
Definition: Rsa.php:43
_getBaseSignatureString(array $params, $method=null, $url=null)
setHashAlgorithm($name)
Definition: Rsa.php:274
$method
Definition: info.phtml:13
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition: website.php:18