Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
vendor
/
league
/
oauth1-client
/
src
/
Signature
:
RsaSha1Signature-20250408155906.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace League\OAuth1\Client\Signature; use League\OAuth1\Client\Credentials\RsaClientCredentials; class RsaSha1Signature extends Signature implements SignatureInterface { use EncodesUrl; /** * @inheritDoc */ public function method() { return 'RSA-SHA1'; } /** * @inheritDoc */ public function sign($uri, array $parameters = [], $method = 'POST') { $url = $this->createUrl($uri); $baseString = $this->baseString($url, $method, $parameters); /** @var RsaClientCredentials $clientCredentials */ $clientCredentials = $this->clientCredentials; $privateKey = $clientCredentials->getRsaPrivateKey(); openssl_sign($baseString, $signature, $privateKey); return base64_encode($signature); } }