BaseSecurity
faststream.security.BaseSecurity #
BaseSecurity(
ssl_context: Optional[SSLContext] = None,
use_ssl: bool | None = None,
)
Base class for defining security configurations.
This class provides a base for defining security configurations for communication with a broker. It allows setting SSL encryption and provides methods to retrieve security requirements and schemas.
Source code in faststream/security.py
21 22 23 24 25 26 27 28 29 30 31 32 33 | |
get_requirement #
get_requirement() -> list[dict[str, Any]]
Get the security requirements.
Source code in faststream/security.py
35 36 37 | |
get_schema #
get_schema() -> dict[str, dict[str, str]]
Get the security schema.
Source code in faststream/security.py
39 40 41 | |