Package org.keycloak.userprofile
Enum UserProfileContext
- All Implemented Interfaces:
Serializable
,Comparable<UserProfileContext>
This interface represents the different contexts from where user profiles are managed. The core contexts are already available here representing the different parts in Keycloak where user profiles are managed.
The context is crucial to drive the conditions that should be respected when managing user profiles. It might be possible to include in the future metadata about contexts. As well as support custom contexts.
- Author:
- Markus Till
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static UserProfileContext
Returns the enum constant of this type with the specified name.static UserProfileContext[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UPDATE_PROFILE
-
USER_API
-
ACCOUNT
-
ACCOUNT_OLD
-
IDP_REVIEW
-
REGISTRATION_PROFILE
-
REGISTRATION_USER_CREATION
-
UPDATE_EMAIL
-
-
Field Details
-
resetEmailVerified
protected boolean resetEmailVerified
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
isResetEmailVerified
public boolean isResetEmailVerified()- Returns:
- true means that UserModel.emailVerified flag must be reset to false in this context when email address is updated
-