| 1 | <?php |
||
| 12 | class QualifiedCertificate |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var CertificationPath |
||
| 16 | */ |
||
| 17 | private $path; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var PathValidationResult |
||
| 21 | */ |
||
| 22 | private $validationResult; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * QualifiedCertificate constructor. |
||
| 26 | * @param CertificationPath $path |
||
| 27 | * @param PathValidationResult $result |
||
| 28 | * @throws X509Exception |
||
| 29 | */ |
||
| 30 | 6 | public function __construct(CertificationPath $path, PathValidationResult $result) |
|
| 39 | |||
| 40 | /** |
||
| 41 | * @return Name |
||
| 42 | */ |
||
| 43 | 1 | public function subject(): Name |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @return CertificationPath |
||
| 50 | */ |
||
| 51 | 3 | public function getPath(): CertificationPath |
|
| 55 | |||
| 56 | /** |
||
| 57 | * @return PathValidationResult |
||
| 58 | */ |
||
| 59 | 4 | public function getValidationResult(): PathValidationResult |
|
| 63 | } |
||
| 64 |