| Current Path : /home/rtorresani/www/vendor/spomky-labs/pki-framework/src/X501/ASN1/AttributeValue/ |
| Current File : //home/rtorresani/www/vendor/spomky-labs/pki-framework/src/X501/ASN1/AttributeValue/NameValue.php |
<?php
declare(strict_types=1);
namespace SpomkyLabs\Pki\X501\ASN1\AttributeValue;
use SpomkyLabs\Pki\X501\ASN1\AttributeType;
use SpomkyLabs\Pki\X501\ASN1\AttributeValue\Feature\DirectoryString;
/**
* 'name' attribute value.
*
* @see https://www.itu.int/ITU-T/formal-language/itu-t/x/x520/2012/SelectedAttributeTypes.html#SelectedAttributeTypes.name
*/
final class NameValue extends DirectoryString
{
public static function create(string $value, int $string_tag = DirectoryString::UTF8): static
{
return new static(AttributeType::OID_NAME, $value, $string_tag);
}
}