request.message_parser.base =========================== .. py:module:: request.message_parser.base .. autoapi-nested-parse:: Provides the `PkiMessageParser` class for parsing PKI messages. Module Contents --------------- .. py:class:: ParsingComponent Bases: :py:obj:`abc.ABC` Abstract base class for components in the composite parsing pattern. .. py:method:: parse(context) :abstractmethod: Execute parsing logic and store results in the context. .. py:class:: DomainParsing Bases: :py:obj:`ParsingComponent`, :py:obj:`trustpoint.logger.LoggerMixin` Parses and validates the domain from the request context object. .. py:method:: parse(context) Extract and validate the domain, then add it to the context. .. py:class:: CertProfileParsing Bases: :py:obj:`ParsingComponent`, :py:obj:`trustpoint.logger.LoggerMixin` Parses the certificate profile from the request context object. .. py:method:: parse(context) Extract and validate the certificate profile, then add it to the context. .. py:class:: CompositeParsing Bases: :py:obj:`ParsingComponent`, :py:obj:`trustpoint.logger.LoggerMixin` Composite parser to group multiple parsing strategies. .. py:attribute:: components :type: list[ParsingComponent] :value: [] .. py:method:: add(component) Add a parsing component to the composite parser. .. py:method:: remove(component) Remove a parsing component from the composite parser. .. py:method:: parse(context) Execute all child parsers, returning the updated type-narrowed context.