CoreFiles by mySites.guru
NoRevocationAvailableExtension.php37 lines, 852 bytes, from Joomla_5.2.1-Stable-Full_Package.zip
Raw History Compare with 5.2.0
md5
27116af2bdd71d5c433471cb909e253e
sha1
27afb9ba8624fd73cbc3840ef0aca64341453353
sha256
dbcb9a09f5ddedb5b79ecf433c0d0f02fd2ae1b637b2034b094861da2fec834c
<?php

declare(strict_types=1);

namespace SpomkyLabs\Pki\X509\Certificate\Extension;

use SpomkyLabs\Pki\ASN1\Element;
use SpomkyLabs\Pki\ASN1\Type\Primitive\NullType;

/**
 * Implements 'No Revocation Available' certificate extension.
 *
 * @see https://tools.ietf.org/html/rfc5755#section-4.3.6
 */
final class NoRevocationAvailableExtension extends Extension
{
    private function __construct(bool $critical)
    {
        parent::__construct(self::OID_NO_REV_AVAIL, $critical);
    }

    public static function create(bool $critical): self
    {
        return new self($critical);
    }

    protected static function fromDER(string $data, bool $critical): static
    {
        NullType::fromDER($data);
        return self::create($critical);
    }

    protected function valueASN1(): Element
    {
        return NullType::create();
    }
}

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.