mokr.network.security

Module Contents

Classes

SecurityDetails

A simple representation of remote response security details.

Attributes

LOGGER

mokr.network.security.LOGGER
class mokr.network.security.SecurityDetails(subject_name: str, issuer: str, valid_from: int, valid_to: int, protocol: str)

A simple representation of remote response security details.

Parameters:
  • subject_name (str) – Subject to which the certificate was issued to.

  • issuer (str) – Name of issuer of the certificate.

  • valid_from (int) – Unix time string of start of certificate validity.

  • valid_to (int) – Unix time string of end of certificate validity.

  • protocol (str) – Security protocol (e.g. “TLS1.2”, “TLS1.3”).

property subject_name: str

Subject to which the certificate was issued to.

property issuer: str

Name of issuer of the certificate.

property valid_from: int

Unix time string of start of certificate validity.

property valid_to: int

Unix time string of end of certificate validity.

property protocol: str

Security protocol (e.g. “TLS1.2”, “TLS1.3”).