| 1 | <?php |
||
| 17 | class DirectoryName extends GeneralName |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Directory name. |
||
| 21 | * |
||
| 22 | * @var Name $_dn |
||
| 23 | */ |
||
| 24 | protected $_dn; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Constructor. |
||
| 28 | * |
||
| 29 | * @param Name $dn |
||
| 30 | */ |
||
| 31 | 66 | public function __construct(Name $dn) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * |
||
| 39 | * @param UnspecifiedType $el |
||
| 40 | * @return self |
||
| 41 | */ |
||
| 42 | 37 | public static function fromChosenASN1(UnspecifiedType $el): self |
|
| 46 | |||
| 47 | /** |
||
| 48 | * Initialize from distinguished name string. |
||
| 49 | * |
||
| 50 | * @param string $str |
||
| 51 | * @return self |
||
| 52 | */ |
||
| 53 | 20 | public static function fromDNString(string $str): self |
|
| 57 | |||
| 58 | /** |
||
| 59 | * |
||
| 60 | * {@inheritdoc} |
||
| 61 | */ |
||
| 62 | 3 | public function string(): string |
|
| 66 | |||
| 67 | /** |
||
| 68 | * Get directory name. |
||
| 69 | * |
||
| 70 | * @return Name |
||
| 71 | */ |
||
| 72 | 42 | public function dn(): Name |
|
| 76 | |||
| 77 | /** |
||
| 78 | * |
||
| 79 | * {@inheritdoc} |
||
| 80 | */ |
||
| 81 | 58 | protected function _choiceASN1(): TaggedType |
|
| 87 | } |
||
| 88 |