1
0

PublicKeyInterface.php 612 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace OAuth2\Storage;
  3. /**
  4. * Implement this interface to specify where the OAuth2 Server
  5. * should get public/private key information
  6. *
  7. * @author Brent Shaffer <bshafs at gmail dot com>
  8. */
  9. interface PublicKeyInterface
  10. {
  11. /**
  12. * @param mixed $client_id
  13. * @return mixed
  14. */
  15. public function getPublicKey($client_id = null);
  16. /**
  17. * @param mixed $client_id
  18. * @return mixed
  19. */
  20. public function getPrivateKey($client_id = null);
  21. /**
  22. * @param mixed $client_id
  23. * @return mixed
  24. */
  25. public function getEncryptionAlgorithm($client_id = null);
  26. }