vhost_entry.py 658 B

123456789101112131415161718192021222324
  1. # SPDX-FileCopyrightText: 2023 Helmut Pozimski <helmut@pozimski.eu>
  2. #
  3. # SPDX-License-Identifier: GPL-2.0-only
  4. # -*- coding: utf8 -*-
  5. class ApacheVhostEntry:
  6. def __init__(self, main_domain: str, cert_path: str, key_path: str, domains: set):
  7. self._main_domain = main_domain
  8. self._cert_path = cert_path
  9. self._key_path = key_path
  10. self._domains = domains
  11. def get_main_domain(self) -> str:
  12. return self._main_domain
  13. def get_cert_path(self) -> str:
  14. return self._cert_path
  15. def get_key_path(self) -> str:
  16. return self._key_path
  17. def get_domains(self) -> set:
  18. return self._domains