request.message_builder.cmp =========================== .. py:module:: request.message_builder.cmp .. autoapi-nested-parse:: Provides classes for building CMP PKI messages. Module Contents --------------- .. py:exception:: CmpMessageBuilderError Bases: :py:obj:`Exception` Base exception for CMP message builder errors. .. py:data:: CMP_MESSAGE_VERSION :value: 2 .. py:data:: TRANSACTION_ID_LENGTH :value: 16 .. py:data:: SENDER_NONCE_LENGTH :value: 16 .. py:data:: IMPLICIT_CONFIRM_OID :value: '1.3.6.1.5.5.7.4.13' .. py:data:: PBM_OID :value: '1.2.840.113533.7.66.13' .. py:data:: SHA256_OID .. py:class:: CmpCertTemplateBuilding Bases: :py:obj:`request.message_builder.base.BuildingComponent`, :py:obj:`trustpoint.logger.LoggerMixin` Build a ``CertTemplate`` from the context's certificate request data. .. py:method:: build(context) Build the CertTemplate and store it in the context. .. py:class:: CmpCertRequestBodyBuilding Bases: :py:obj:`request.message_builder.base.BuildingComponent`, :py:obj:`trustpoint.logger.LoggerMixin` Build the PKI body from the ``CertTemplate``. .. py:method:: build(context) Build the PKI body and store it in the context. .. py:class:: CmpPkiHeaderBuilding Bases: :py:obj:`request.message_builder.base.BuildingComponent`, :py:obj:`trustpoint.logger.LoggerMixin` Build the PKI header for the CMP message. .. py:method:: build(context) Build the PKI header and store it in the context. .. py:class:: CmpPkiMessageAssembly Bases: :py:obj:`request.message_builder.base.BuildingComponent`, :py:obj:`trustpoint.logger.LoggerMixin` Assemble the final ``PKIMessage`` from header and body. .. py:method:: build(context) Assemble the PKI message and store it in the context. .. py:class:: CmpMessageBuilder Bases: :py:obj:`request.message_builder.base.CompositeBuilding` Composite builder for CMP certification/initialization request messages.