Package io.serverlessworkflow.api.auth
Enum OauthDefinition.GrantType
- java.lang.Object
-
- java.lang.Enum<OauthDefinition.GrantType>
-
- io.serverlessworkflow.api.auth.OauthDefinition.GrantType
-
- All Implemented Interfaces:
Serializable,Comparable<OauthDefinition.GrantType>
- Enclosing class:
- OauthDefinition
public static enum OauthDefinition.GrantType extends Enum<OauthDefinition.GrantType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLIENT_CREDENTIALSPASSWORDTOKEN_EXCHANGE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OauthDefinition.GrantTypefromValue(String value)StringtoString()Stringvalue()static OauthDefinition.GrantTypevalueOf(String name)Returns the enum constant of this type with the specified name.static OauthDefinition.GrantType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PASSWORD
public static final OauthDefinition.GrantType PASSWORD
-
CLIENT_CREDENTIALS
public static final OauthDefinition.GrantType CLIENT_CREDENTIALS
-
TOKEN_EXCHANGE
public static final OauthDefinition.GrantType TOKEN_EXCHANGE
-
-
Method Detail
-
values
public static OauthDefinition.GrantType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OauthDefinition.GrantType c : OauthDefinition.GrantType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OauthDefinition.GrantType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<OauthDefinition.GrantType>
-
value
public String value()
-
fromValue
public static OauthDefinition.GrantType fromValue(String value)
-
-