Enum Class OAuth2Flow

java.lang.Object
java.lang.Enum<OAuth2Flow>
one.jpro.platform.auth.core.oauth2.OAuth2Flow
All Implemented Interfaces:
Serializable, Comparable<OAuth2Flow>, Constable

public enum OAuth2Flow extends Enum<OAuth2Flow>
OAuth2 flows.
  • Enum Constant Details

    • AUTH_CODE

      public static final OAuth2Flow AUTH_CODE
    • PASSWORD

      public static final OAuth2Flow PASSWORD
    • CLIENT

      public static final OAuth2Flow CLIENT
    • AUTH_JWT

      public static final OAuth2Flow AUTH_JWT
  • Method Details

    • values

      public static OAuth2Flow[] 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 OAuth2Flow 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
    • getGrantType

      public String getGrantType()
    • getFlow

      public static OAuth2Flow getFlow(String grantType)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<OAuth2Flow>