keystore_error.mojom 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. module crosapi.mojom;
  5. // Status codes for KeystoreService methods.
  6. // Mostly mirrors platform_keys::Status enum.
  7. [Stable, Extensible]
  8. enum KeystoreError {
  9. // platform_keys errors.
  10. [Default] kUnknown,
  11. kAlgorithmNotSupported,
  12. kAlgorithmNotPermittedByCertificate,
  13. kCertificateNotFound,
  14. kCertificateInvalid,
  15. kInputTooLong,
  16. kGrantKeyPermissionForExtension,
  17. kInternal,
  18. kKeyAttributeRetrievalFailed,
  19. kKeyAttributeSettingFailed,
  20. kKeyNotAllowedForSigning,
  21. kKeyNotFound,
  22. // An operation was interrupted by shut down.
  23. kShutDown,
  24. // kNet* are for errors occurred during net::* operations.
  25. kNetAddUserCertFailed,
  26. kNetCertificateDateInvalid,
  27. kNetCertificateInvalid,
  28. // Keystore errors.
  29. kUnsupportedKeystoreType,
  30. [MinVersion=1]
  31. kUnsupportedAlgorithmType,
  32. [MinVersion=2]
  33. kUnsupportedKeyTag,
  34. [MinVersion=3]
  35. kMojoUnavailable,
  36. [MinVersion=3]
  37. kUnsupportedKeyType,
  38. };