CoreFiles by mySites.guru
CertificateChainException.php36 lines, 990 bytes, from Joomla_5.4.11-Stable-Full_Package.zip
Raw History Compare with 5.4.10
md5
9f3aeca80b61922b00041cdf02ad7d96
sha1
9f55b1e82727fea7e3e2ae861dea599af2bafd26
sha256
1954b91ae828418d7079e57c0f4cebd7dbba4d04ca4856b62fc8730acba8cf76
<?php

declare(strict_types=1);

namespace Webauthn\MetadataService\Exception;

use Throwable;

class CertificateChainException extends MetadataServiceException
{
    /**
     * @param array<string> $untrustedCertificates
     * @param array<string> $trustedCertificates
     */
    public function __construct(
        public readonly array $untrustedCertificates,
        public readonly array $trustedCertificates,
        string $message,
        ?Throwable $previous = null
    ) {
        parent::__construct($message, $previous);
    }

    /**
     * @param array<string> $untrustedCertificates
     * @param array<string> $trustedCertificates
     */
    public static function create(
        array $untrustedCertificates,
        array $trustedCertificates,
        string $message = 'Unable to validate the certificate chain.',
        ?Throwable $previous = null
    ): self {
        return new self($untrustedCertificates, $trustedCertificates, $message, $previous);
    }
}

The same content is in 158 releases, Joomla 5.0.0-alpha1 to 6.3.0-alpha1. See them all, or every version of this file.