request.message_builder.base¶
Provides the base classes for the message building step of the request pipeline.
Module Contents¶
- class request.message_builder.base.BuildingComponent[source]¶
Bases:
abc.ABCAbstract base class for components in the composite building pattern.
This is the building counterpart to
ParsingComponentinmessage_parser/base.py. Each component is responsible for one aspect of constructing a CMP PKI message (e.g. header, body, protection preparation) and stores its results in the context.
- class request.message_builder.base.CompositeBuilding[source]¶
Bases:
BuildingComponent,trustpoint.logger.LoggerMixinComposite builder to group multiple building components.
Mirrors the
CompositeParsingclass frommessage_parser/base.py.- components: list[BuildingComponent] = [][source]¶
- add(component)[source]¶
Add a building component to the composite builder.
- Parameters:
component (BuildingComponent)
- Return type:
None
- remove(component)[source]¶
Remove a building component from the composite builder.
- Parameters:
component (BuildingComponent)
- Return type:
None