WebAuthnException.php 760 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace lbuchs\WebAuthn;
  3. /**
  4. * @author Lukas Buchs
  5. * @license https://github.com/lbuchs/WebAuthn/blob/master/LICENSE MIT
  6. */
  7. class WebAuthnException extends \Exception {
  8. const INVALID_DATA = 1;
  9. const INVALID_TYPE = 2;
  10. const INVALID_CHALLENGE = 3;
  11. const INVALID_ORIGIN = 4;
  12. const INVALID_RELYING_PARTY = 5;
  13. const INVALID_SIGNATURE = 6;
  14. const INVALID_PUBLIC_KEY = 7;
  15. const CERTIFICATE_NOT_TRUSTED = 8;
  16. const USER_PRESENT = 9;
  17. const USER_VERIFICATED = 10;
  18. const SIGNATURE_COUNTER = 11;
  19. const CRYPTO_STRONG = 13;
  20. const BYTEBUFFER = 14;
  21. const CBOR = 15;
  22. public function __construct($message = "", $code = 0, $previous = null) {
  23. parent::__construct($message, $code, $previous);
  24. }
  25. }