@@ -133,6 +133,10 @@ the root of trust:
133
133
134
134
.. versionadded :: 43.0.0
135
135
136
+ .. versionchanged :: 44.0.0
137
+ ``verification_time `` and ``max_chain_depth `` were replaced by the
138
+ ``policy `` property that provides access to these values.
139
+
136
140
A ClientVerifier verifies client certificates.
137
141
138
142
It contains and describes various pieces of configurable path
@@ -142,17 +146,11 @@ the root of trust:
142
146
ClientVerifier instances cannot be constructed directly;
143
147
:class: `PolicyBuilder ` must be used.
144
148
145
- .. attribute :: validation_time
146
-
147
- :type: :class: `datetime.datetime `
148
-
149
- The verifier's validation time.
149
+ .. attribute :: policy
150
150
151
- .. attribute :: max_chain_depth
152
-
153
- :type: :class: `int `
151
+ :type: :class: `Policy `
154
152
155
- The verifier's maximum intermediate CA chain depth.
153
+ The policy used by the verifier. Can be used to access verification time, chain depth, etc .
156
154
157
155
.. attribute :: store
158
156
@@ -181,6 +179,11 @@ the root of trust:
181
179
182
180
.. versionadded :: 42.0.0
183
181
182
+ .. versionchanged :: 44.0.0
183
+ ``subject ``, ``verification_time `` and ``max_chain_depth `` were replaced by the
184
+ ``policy `` property that provides access to these values.
185
+
186
+
184
187
A ServerVerifier verifies server certificates.
185
188
186
189
It contains and describes various pieces of configurable path
@@ -191,23 +194,11 @@ the root of trust:
191
194
ServerVerifier instances cannot be constructed directly;
192
195
:class: `PolicyBuilder ` must be used.
193
196
194
- .. attribute :: subject
195
-
196
- :type: :class: `Subject `
197
-
198
- The verifier's subject.
199
-
200
- .. attribute :: validation_time
201
-
202
- :type: :class: `datetime.datetime `
203
-
204
- The verifier's validation time.
205
-
206
- .. attribute :: max_chain_depth
197
+ .. attribute :: policy
207
198
208
- :type: :class: `int `
199
+ :type: :class: `Policy `
209
200
210
- The verifier's maximum intermediate CA chain depth.
201
+ The policy used by the verifier. Can be used to access verification time, chain depth, etc .
211
202
212
203
.. attribute :: store
213
204
@@ -407,7 +398,8 @@ the root of trust:
407
398
408
399
.. versionadded :: 44.0.0
409
400
410
- Represents a policy for certificate verification. Passed to extension validator callbacks.
401
+ Represents a policy for certificate verification. Passed to extension validator callbacks and
402
+ accessible via :class: `ClientVerifier ` and :class: `ServerVerifier `.
411
403
412
404
.. attribute :: max_chain_depth
413
405
0 commit comments