Package org.keycloak.models.utils
Class DefaultRequiredActions
java.lang.Object
org.keycloak.models.utils.DefaultRequiredActions
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addAction
(RealmModel realm, DefaultRequiredActions.Action action) Add default required action to the realmstatic void
addActions
(RealmModel realm) Add default required actions to the realmstatic void
addConfigureTotpAction
(RealmModel realm) static void
addDeleteAccountAction
(RealmModel realm) static void
static void
static void
addUpdateEmailAction
(RealmModel realm) static void
addUpdateLocaleAction
(RealmModel realm) static void
static void
addUpdateProfileAction
(RealmModel realm) static void
addVerifyEmailAction
(RealmModel realm) static void
static void
static String
getDefaultRequiredActionCaseInsensitively
(String providerId) Checks whether givenproviderId
case insensitively matches any ofUserModel.RequiredAction
enum and if yes, it returns the value in correct form.static boolean
Check whether the action is the default one used in a realm and is available in the application Often, the default actions can be disabled due to the fact a particular feature is disabled
-
Constructor Details
-
DefaultRequiredActions
public DefaultRequiredActions()
-
-
Method Details
-
isActionAvailable
Check whether the action is the default one used in a realm and is available in the application Often, the default actions can be disabled due to the fact a particular feature is disabled- Parameters:
action
- required action- Returns:
- true if the required action is the default one and is available
-
addActions
Add default required actions to the realm- Parameters:
realm
- realm
-
addAction
Add default required action to the realm- Parameters:
realm
- realmaction
- particular required action
-
addVerifyEmailAction
-
addUpdateProfileAction
-
addConfigureTotpAction
-
addUpdatePasswordAction
-
addTermsAndConditionsAction
-
addDeleteAccountAction
-
addUpdateLocaleAction
-
addUpdateEmailAction
-
addRecoveryAuthnCodesAction
-
addWebAuthnRegisterAction
-
addWebAuthnPasswordlessRegisterAction
-
getDefaultRequiredActionCaseInsensitively
Checks whether givenproviderId
case insensitively matches any ofUserModel.RequiredAction
enum and if yes, it returns the value in correct form. This is necessary to stay backward compatible with older deployments where not all provider factories had ids in uppercase. This means that storage can contain some values in incorrect letter-case.- Parameters:
providerId
- the required actions providerId- Returns:
- providerId with correct letter-case, or the original value if it doesn't match any
of
UserModel.RequiredAction
-