ICertificate.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  6. * SPDX-License-Identifier: AGPL-3.0-only
  7. */
  8. namespace OCP;
  9. /**
  10. * Interface ICertificate
  11. *
  12. * @since 8.0.0
  13. */
  14. interface ICertificate {
  15. /**
  16. * @return string
  17. * @since 8.0.0
  18. */
  19. public function getName(): string;
  20. /**
  21. * @return string|null
  22. * @since 8.0.0
  23. */
  24. public function getCommonName(): ?string;
  25. /**
  26. * @return string|null
  27. * @since 8.0.0
  28. */
  29. public function getOrganization(): ?string;
  30. /**
  31. * @return \DateTime
  32. * @since 8.0.0
  33. */
  34. public function getIssueDate(): \DateTime;
  35. /**
  36. * @return \DateTime
  37. * @since 8.0.0
  38. */
  39. public function getExpireDate(): \DateTime;
  40. /**
  41. * @return bool
  42. * @since 8.0.0
  43. */
  44. public function isExpired(): bool;
  45. /**
  46. * @return string|null
  47. * @since 8.0.0
  48. */
  49. public function getIssuerName(): ?string;
  50. /**
  51. * @return string|null
  52. * @since 8.0.0
  53. */
  54. public function getIssuerOrganization(): ?string;
  55. }