Skip to content

Commit

Permalink
Doc updates per PR discussion.
Browse files Browse the repository at this point in the history
  • Loading branch information
deivse committed Dec 9, 2024
1 parent b84eea1 commit 0639af6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/x509/verification.rst
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,17 @@ the root of trust:

.. versionadded:: 44.0.0

An ExtensionPolicy provides a builder-style interface for constructing an
:class:`ExtensionPolicy`.
ExtensionPolicy provides a set of static methods to construct predefined
extension policies, and a builder-style interface for modifying them.

.. note:: Calling any of the builder methods (:meth:`require_not_present`, :meth:`may_be_present`, or :meth:`require_present`)
multiple times with the same extension OID will raise an exception.

.. staticmethod:: permit_all()

Creates an ExtensionPolicy initialized with a policy that does
not put any constraints on a certificate's extensions.
This can serve as a base for a fully custom extension policy.

:returns: An instance of :class:`ExtensionPolicy`

Expand Down

0 comments on commit 0639af6

Please sign in to comment.