Package io.jmix.email.authentication
Enum Class OAuth2ClientType
- All Implemented Interfaces:
EnumClass<String>,Serializable,Comparable<OAuth2ClientType>,Constable
OAuth2 client type a refresh token was issued to. Some providers bind the refresh token to the
client type: e.g. Microsoft Entra rejects redemption with a client secret for tokens obtained
by a public client flow such as device code (error AADSTS700025), and vice versa. The type is
stored together with the token so that redemption uses the matching client flavor.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe token was issued to a confidential client (client secret was presented).The token was issued to a public client (no client secret). -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable OAuth2ClientTypegetId()static OAuth2ClientTypeReturns the enum constant of this class with the specified name.static OAuth2ClientType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONFIDENTIAL
The token was issued to a confidential client (client secret was presented). Used by the authorization code flow and manual token updates. -
PUBLIC
The token was issued to a public client (no client secret). Used by the device code flow.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getId
-
fromId
-