1 | <?php |
||
21 | abstract class SvceAuthInfo extends AttributeValue |
||
22 | { |
||
23 | /** |
||
24 | * Service. |
||
25 | * |
||
26 | * @var GeneralName $_service |
||
27 | */ |
||
28 | protected $_service; |
||
29 | |||
30 | /** |
||
31 | * Ident. |
||
32 | * |
||
33 | * @var GeneralName $_ident |
||
34 | */ |
||
35 | protected $_ident; |
||
36 | |||
37 | /** |
||
38 | * Auth info. |
||
39 | * |
||
40 | * @var string|null $_authInfo |
||
41 | */ |
||
42 | protected $_authInfo; |
||
43 | |||
44 | /** |
||
45 | * Constructor. |
||
46 | * |
||
47 | * @param GeneralName $service |
||
48 | * @param GeneralName $ident |
||
49 | * @param string|null $auth_info |
||
50 | */ |
||
51 | public function __construct(GeneralName $service, GeneralName $ident, |
||
58 | |||
59 | /** |
||
60 | * |
||
61 | * @param UnspecifiedType $el |
||
62 | * @return self |
||
63 | */ |
||
64 | public static function fromASN1(UnspecifiedType $el) |
||
77 | |||
78 | /** |
||
79 | * Get service name. |
||
80 | * |
||
81 | * @return GeneralName |
||
82 | */ |
||
83 | public function service(): GeneralName |
||
87 | |||
88 | /** |
||
89 | * Get ident. |
||
90 | * |
||
91 | * @return GeneralName |
||
92 | */ |
||
93 | public function ident(): GeneralName |
||
97 | |||
98 | /** |
||
99 | * Check whether authentication info is present. |
||
100 | * |
||
101 | * @return bool |
||
102 | */ |
||
103 | public function hasAuthInfo(): bool |
||
107 | |||
108 | /** |
||
109 | * Get authentication info. |
||
110 | * |
||
111 | * @throws \LogicException |
||
112 | * @return string |
||
113 | */ |
||
114 | public function authInfo(): string |
||
121 | |||
122 | /** |
||
123 | * |
||
124 | * @see \X501\ASN1\AttributeValue\AttributeValue::toASN1() |
||
125 | * @return Sequence |
||
126 | */ |
||
127 | public function toASN1(): Sequence |
||
135 | |||
136 | /** |
||
137 | * |
||
138 | * @see \X501\ASN1\AttributeValue\AttributeValue::stringValue() |
||
139 | * @return string |
||
140 | */ |
||
141 | public function stringValue(): string |
||
145 | |||
146 | /** |
||
147 | * |
||
148 | * @see \X501\ASN1\AttributeValue\AttributeValue::equalityMatchingRule() |
||
149 | * @return BinaryMatch |
||
150 | */ |
||
151 | public function equalityMatchingRule(): BinaryMatch |
||
155 | |||
156 | /** |
||
157 | * |
||
158 | * @see \X501\ASN1\AttributeValue\AttributeValue::rfc2253String() |
||
159 | * @return string |
||
160 | */ |
||
161 | public function rfc2253String(): string |
||
165 | |||
166 | /** |
||
167 | * |
||
168 | * @see \X501\ASN1\AttributeValue\AttributeValue::_transcodedString() |
||
169 | * @return string |
||
170 | */ |
||
171 | protected function _transcodedString(): string |
||
175 | } |
||
176 |