Enum Class SaMode

java.lang.Object
java.lang.Enum<SaMode>
cn.dev33.satoken.annotation.SaMode
All Implemented Interfaces:
Serializable, Comparable<SaMode>, Constable

public enum SaMode extends Enum<SaMode>
注解鉴权的验证模式
Since:
1.10.0
Author:
click33
  • Enum Constant Details

    • AND

      public static final SaMode AND
      必须具有所有的元素
    • OR

      public static final SaMode OR
      只需具有其中一个元素
  • Method Details

    • values

      public static SaMode[] 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 SaMode 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