1
0

ICertificate.php 1.5 KB

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