Enum Class GrantType

java.lang.Object
java.lang.Enum<GrantType>
cn.herodotus.engine.oauth2.core.enums.GrantType
所有已实现的接口:
cn.herodotus.engine.assistant.core.definition.enums.BaseUiEnum<String>, cn.herodotus.engine.assistant.core.definition.enums.EnumDescription, cn.herodotus.engine.assistant.core.definition.enums.EnumValue<String>, Serializable, Comparable<GrantType>, Constable

public enum GrantType extends Enum<GrantType> implements cn.herodotus.engine.assistant.core.definition.enums.BaseUiEnum<String>

Description: OAuth2 认证模式枚举

作者:
: gengwei.zheng
Date:
: 2021/10/16 14:39
  • 枚举常量详细资料

    • AUTHORIZATION_CODE

      public static final GrantType AUTHORIZATION_CODE
      enum
    • CLIENT_CREDENTIALS

      public static final GrantType CLIENT_CREDENTIALS
    • DEVICE_CODE

      public static final GrantType DEVICE_CODE
    • REFRESH_TOKEN

      public static final GrantType REFRESH_TOKEN
    • JWT_BEARER

      public static final GrantType JWT_BEARER
    • PASSWORD

      public static final GrantType PASSWORD
    • SOCIAL_CREDENTIALS

      public static final GrantType SOCIAL_CREDENTIALS
  • 方法详细资料

    • values

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

      public static GrantType 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.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • getValue

      public String getValue()
      指定者:
      getValue 在接口中 cn.herodotus.engine.assistant.core.definition.enums.EnumValue<String>
    • getDescription

      public String getDescription()
      指定者:
      getDescription 在接口中 cn.herodotus.engine.assistant.core.definition.enums.EnumDescription
    • get

      public static GrantType get(Integer index)
    • getPreprocessedJsonStructure

      public static List<Map<String,Object>> getPreprocessedJsonStructure()