Package org.keycloak.models.utils
Class DefaultRequiredActions
java.lang.Object
org.keycloak.models.utils.DefaultRequiredActions
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAction(RealmModel realm, DefaultRequiredActions.Action action) Add default required action to the realmstatic voidaddActions(RealmModel realm) Add default required actions to the realmstatic voidaddConfigureTotpAction(RealmModel realm) static voidaddDeleteAccountAction(RealmModel realm) static voidstatic voidaddIdpLink(RealmModel realm) static voidstatic voidstatic voidaddUpdateEmailAction(RealmModel realm) static voidaddUpdateLocaleAction(RealmModel realm) static voidstatic voidaddUpdateProfileAction(RealmModel realm) static voidaddVerifyEmailAction(RealmModel realm) static voidaddVerifyProfile(RealmModel realm) static voidstatic voidstatic StringgetDefaultRequiredActionCaseInsensitively(String providerId) Checks whether givenproviderIdcase insensitively matches any ofUserModel.RequiredActionenum and if yes, it returns the value in correct form.static booleanCheck 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
-
addVerifyProfile
-
addDeleteAccountAction
-
addDeleteCredentialAction
-
addIdpLink
-
addUpdateLocaleAction
-
addUpdateEmailAction
-
addRecoveryAuthnCodesAction
-
addWebAuthnRegisterAction
-
addWebAuthnPasswordlessRegisterAction
-
getDefaultRequiredActionCaseInsensitively
Checks whether givenproviderIdcase insensitively matches any ofUserModel.RequiredActionenum 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
-