1 | <?php |
||
10 | class AuthorityAccessDescription extends AccessDescription |
||
11 | { |
||
12 | /** |
||
13 | * Access method OID's. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | const OID_METHOD_OSCP = '1.3.6.1.5.5.7.48.1'; |
||
18 | const OID_METHOD_CA_ISSUERS = '1.3.6.1.5.5.7.48.2'; |
||
19 | |||
20 | /** |
||
21 | * Check whether access method is OSCP. |
||
22 | * |
||
23 | * @return bool |
||
24 | */ |
||
25 | 1 | public function isOSCPMethod(): bool |
|
26 | { |
||
27 | 1 | return self::OID_METHOD_OSCP === $this->_accessMethod; |
|
28 | } |
||
29 | |||
30 | /** |
||
31 | * Check whether access method is CA issuers. |
||
32 | * |
||
33 | * @return bool |
||
34 | */ |
||
35 | 1 | public function isCAIssuersMethod(): bool |
|
38 | } |
||
39 | } |
||
40 |