Skip to content

Commit

Permalink
Replace some fields on [Client|Server]Verifier with policy property…
Browse files Browse the repository at this point in the history
…. (docs)
  • Loading branch information
deivse committed Nov 11, 2024
1 parent 8b730cf commit b84eea1
Showing 1 changed file with 17 additions and 25 deletions.
42 changes: 17 additions & 25 deletions docs/x509/verification.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ the root of trust:

.. versionadded:: 43.0.0

.. versionchanged:: 44.0.0
``verification_time`` and ``max_chain_depth`` were replaced by the
``policy`` property that provides access to these values.

A ClientVerifier verifies client certificates.

It contains and describes various pieces of configurable path
Expand All @@ -142,17 +146,11 @@ the root of trust:
ClientVerifier instances cannot be constructed directly;
:class:`PolicyBuilder` must be used.

.. attribute:: validation_time

:type: :class:`datetime.datetime`

The verifier's validation time.
.. attribute:: policy

.. attribute:: max_chain_depth

:type: :class:`int`
:type: :class:`Policy`

The verifier's maximum intermediate CA chain depth.
The policy used by the verifier. Can be used to access verification time, chain depth, etc.

.. attribute:: store

Expand Down Expand Up @@ -181,6 +179,11 @@ the root of trust:

.. versionadded:: 42.0.0

.. versionchanged:: 44.0.0
``subject``, ``verification_time`` and ``max_chain_depth`` were replaced by the
``policy`` property that provides access to these values.


A ServerVerifier verifies server certificates.

It contains and describes various pieces of configurable path
Expand All @@ -191,23 +194,11 @@ the root of trust:
ServerVerifier instances cannot be constructed directly;
:class:`PolicyBuilder` must be used.

.. attribute:: subject

:type: :class:`Subject`

The verifier's subject.

.. attribute:: validation_time

:type: :class:`datetime.datetime`

The verifier's validation time.

.. attribute:: max_chain_depth
.. attribute:: policy

:type: :class:`int`
:type: :class:`Policy`

The verifier's maximum intermediate CA chain depth.
The policy used by the verifier. Can be used to access verification time, chain depth, etc.

.. attribute:: store

Expand Down Expand Up @@ -407,7 +398,8 @@ the root of trust:

.. versionadded:: 44.0.0

Represents a policy for certificate verification. Passed to extension validator callbacks.
Represents a policy for certificate verification. Passed to extension validator callbacks and
accessible via :class:`ClientVerifier` and :class:`ServerVerifier`.

.. attribute:: max_chain_depth

Expand Down

0 comments on commit b84eea1

Please sign in to comment.