Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.
   1  <?php
   2  namespace lbuchs\WebAuthn;
   3  
   4  /**
   5   * @author Lukas Buchs
   6   * @license https://github.com/lbuchs/WebAuthn/blob/master/LICENSE MIT
   7   */
   8  class WebAuthnException extends \Exception {
   9      const INVALID_DATA = 1;
  10      const INVALID_TYPE = 2;
  11      const INVALID_CHALLENGE = 3;
  12      const INVALID_ORIGIN = 4;
  13      const INVALID_RELYING_PARTY = 5;
  14      const INVALID_SIGNATURE = 6;
  15      const INVALID_PUBLIC_KEY = 7;
  16      const CERTIFICATE_NOT_TRUSTED = 8;
  17      const USER_PRESENT = 9;
  18      const USER_VERIFICATED = 10;
  19      const SIGNATURE_COUNTER = 11;
  20      const CRYPTO_STRONG = 13;
  21      const BYTEBUFFER = 14;
  22      const CBOR = 15;
  23      const ANDROID_NOT_TRUSTED = 16;
  24  
  25      public function __construct($message = "", $code = 0, $previous = null) {
  26          parent::__construct($message, $code, $previous);
  27      }
  28  }