Class InvalidAccessKeyException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.xezzon.zeroweb.common.exception.ZerowebBusinessException
io.github.xezzon.zeroweb.third_party_app.exception.InvalidAccessKeyException
All Implemented Interfaces:
Serializable

@NullMarked public class InvalidAccessKeyException extends io.github.xezzon.zeroweb.common.exception.ZerowebBusinessException

无效的访问密钥异常

当第三方应用访问密钥验证失败时抛出此异常。可能的原因包括:

  1. 未传递AccessKey或消息摘要
  2. AccessKey或签名使用的SecretKey不正确
  3. AccessKey或签名使用的SecretKey不匹配
  4. 访问密钥已过期或被吊销
Author:
xezzon
See Also:
  • Field Details

  • Constructor Details

    • InvalidAccessKeyException

      public InvalidAccessKeyException()
      默认构造函数
  • Method Details

    • code

      public String code()
      Specified by:
      code in class io.github.xezzon.zeroweb.common.exception.ZerowebBusinessException
    • httpStatus

      public int httpStatus()
      Overrides:
      httpStatus in class io.github.xezzon.zeroweb.common.exception.ZerowebBusinessException
      Returns:
      HTTP状态码(403 Forbidden)