icertificate.php 752 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * Copyright (c) 2014 Robin Appelman <icewind@owncloud.com>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. */
  8. namespace OCP;
  9. interface ICertificate {
  10. /**
  11. * @return string
  12. */
  13. public function getName();
  14. /**
  15. * @return string
  16. */
  17. public function getCommonName();
  18. /**
  19. * @return string
  20. */
  21. public function getOrganization();
  22. /**
  23. * @return \DateTime
  24. */
  25. public function getIssueDate();
  26. /**
  27. * @return \DateTime
  28. */
  29. public function getExpireDate();
  30. /**
  31. * @return bool
  32. */
  33. public function isExpired();
  34. /**
  35. * @return string
  36. */
  37. public function getIssuerName();
  38. /**
  39. * @return string
  40. */
  41. public function getIssuerOrganization();
  42. }