Enum Class GrantType

java.lang.Object
java.lang.Enum<GrantType>
cn.herodotus.engine.logic.identity.enums.GrantType
All Implemented Interfaces:
cn.herodotus.engine.core.definition.enums.BaseUiEnum<String>, cn.herodotus.engine.core.definition.enums.EnumDescription, cn.herodotus.engine.core.definition.enums.EnumValue<String>, Serializable, Comparable<GrantType>, Constable

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

Description: OAuth2 认证模式枚举

Author:
: gengwei.zheng
Date:
: 2021/10/16 14:39
  • Enum Constant Details

    • 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
    • TOKEN_EXCHANGE

      public static final GrantType TOKEN_EXCHANGE
    • PASSWORD

      public static final GrantType PASSWORD
    • SOCIAL_CREDENTIALS

      public static final GrantType SOCIAL_CREDENTIALS
  • Method Details

    • values

      public static GrantType[] 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 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.)
      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
    • get

      public static GrantType get(Integer index)
    • getPreprocessedJsonStructure

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

      public String getValue()
      Specified by:
      getValue in interface cn.herodotus.engine.core.definition.enums.EnumValue<String>
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface cn.herodotus.engine.core.definition.enums.EnumDescription