Enum Class FailMode

java.lang.Object
java.lang.Enum<FailMode>
com.chaosguide.iam.vertex.authz.FailMode
All Implemented Interfaces:
Serializable, Comparable<FailMode>, Constable

public enum FailMode extends Enum<FailMode>
IAM 权限解析失败时的策略。
  • Enum Constant Details

    • CLOSE

      public static final FailMode CLOSE
      默认策略:解析失败就抛异常,避免在 IAM 不可用时误放行。
    • OPEN

      public static final FailMode OPEN
      返回空权限集合;请求可以完成认证,但受权限保护的接口通常仍会被拒绝。
  • Method Details

    • values

      public static FailMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FailMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null