1
0

ICertificate.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * @copyright Copyright (c) 2016, ownCloud, Inc.
  5. *
  6. * @author J0WI <J0WI@users.noreply.github.com>
  7. * @author Morris Jobke <hey@morrisjobke.de>
  8. * @author Robin Appelman <robin@icewind.nl>
  9. *
  10. * @license AGPL-3.0
  11. *
  12. * This code is free software: you can redistribute it and/or modify
  13. * it under the terms of the GNU Affero General Public License, version 3,
  14. * as published by the Free Software Foundation.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU Affero General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU Affero General Public License, version 3,
  22. * along with this program. If not, see <http://www.gnu.org/licenses/>
  23. *
  24. */
  25. namespace OCP;
  26. /**
  27. * Interface ICertificate
  28. *
  29. * @since 8.0.0
  30. */
  31. interface ICertificate {
  32. /**
  33. * @return string
  34. * @since 8.0.0
  35. */
  36. public function getName(): string;
  37. /**
  38. * @return string|null
  39. * @since 8.0.0
  40. */
  41. public function getCommonName(): ?string;
  42. /**
  43. * @return string|null
  44. * @since 8.0.0
  45. */
  46. public function getOrganization(): ?string;
  47. /**
  48. * @return \DateTime
  49. * @since 8.0.0
  50. */
  51. public function getIssueDate(): \DateTime;
  52. /**
  53. * @return \DateTime
  54. * @since 8.0.0
  55. */
  56. public function getExpireDate(): \DateTime;
  57. /**
  58. * @return bool
  59. * @since 8.0.0
  60. */
  61. public function isExpired(): bool;
  62. /**
  63. * @return string|null
  64. * @since 8.0.0
  65. */
  66. public function getIssuerName(): ?string;
  67. /**
  68. * @return string|null
  69. * @since 8.0.0
  70. */
  71. public function getIssuerOrganization(): ?string;
  72. }