| 1 | <?php |
||
| 15 | class SubjectKeyIdentifierExtension extends Extension |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Key identifier. |
||
| 19 | * |
||
| 20 | * @var string $_keyIdentifier |
||
| 21 | */ |
||
| 22 | protected $_keyIdentifier; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Constructor. |
||
| 26 | * |
||
| 27 | * @param bool $critical |
||
| 28 | * @param string $keyIdentifier |
||
| 29 | */ |
||
| 30 | 18 | public function __construct(bool $critical, string $keyIdentifier) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * |
||
| 38 | * {@inheritdoc} |
||
| 39 | * @return self |
||
| 40 | */ |
||
| 41 | 16 | protected static function _fromDER(string $data, bool $critical): self |
|
| 46 | |||
| 47 | /** |
||
| 48 | * Get key identifier. |
||
| 49 | * |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | 14 | public function keyIdentifier(): string |
|
| 56 | |||
| 57 | /** |
||
| 58 | * |
||
| 59 | * {@inheritdoc} |
||
| 60 | * @return OctetString |
||
| 61 | */ |
||
| 62 | 22 | protected function _valueASN1(): OctetString |
|
| 66 | } |
||
| 67 |