CoreFiles by mySites.guru
CaseExactMatch.php28 lines, 618 bytes, from Joomla_5.0.0-alpha1-Alpha-Full_Package.zip
Raw History Compare with 4.4.0-alpha4
md5
ee8639df2e687263fdd169d2cb46c984
sha1
e8f6fe82ae10dbace96dd85a59df661fe4109496
sha256
cda22c590dbcdf8aaad9337d33b1d7cbcc7175e424d1f5dd582144bddc90cf66
<?php

declare(strict_types=1);

namespace SpomkyLabs\Pki\X501\MatchingRule;

use SpomkyLabs\Pki\X501\StringPrep\StringPreparer;

/**
 * Implements 'caseExactMatch' matching rule.
 *
 * @see https://tools.ietf.org/html/rfc4517#section-4.2.4
 */
final class CaseExactMatch extends StringPrepMatchingRule
{
    /**
     * @param int $stringType ASN.1 string type tag
     */
    private function __construct(int $stringType)
    {
        parent::__construct(StringPreparer::forStringType($stringType));
    }

    public static function create(int $stringType): self
    {
        return new self($stringType);
    }
}

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.