IdentityInterface.php 499 B

123456789101112131415161718192021
  1. <?php
  2. namespace Aws\Identity;
  3. /**
  4. * An Identity object is used in identifying credential types and determining how
  5. * the SDK authenticates with a service API for requests that require a signature.
  6. *
  7. * @internal
  8. */
  9. interface IdentityInterface
  10. {
  11. /**
  12. * Returns a UNIX timestamp, if available, representing
  13. * the expiration time of the identity object. Returns null
  14. * if no expiration is provided.
  15. *
  16. * @return int|null
  17. */
  18. public function getExpiration();
  19. }