Package org.keycloak.migration.migrators
Class MigrationUtils
- java.lang.Object
-
- org.keycloak.migration.migrators.MigrationUtils
-
public class MigrationUtils extends Object
- Author:
- Stian Thorgersen
-
-
Constructor Summary
Constructors Constructor Description MigrationUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addAdminRole(RealmModel realm, String roleName)
static boolean
isOIDCNonBearerOnlyClient(ClientModel c)
static void
migrateOldOfflineToken(KeycloakSession session, RealmModel realm, ClientModel client, UserModel user)
static void
setDefaultClientAuthenticatorType(ClientModel s)
static void
updateOTPRequiredAction(RequiredActionProviderModel otpAction)
static void
updateProtocolMappers(ProtocolMapperContainerModel client)
-
-
-
Method Detail
-
addAdminRole
public static void addAdminRole(RealmModel realm, String roleName)
-
updateOTPRequiredAction
public static void updateOTPRequiredAction(RequiredActionProviderModel otpAction)
-
updateProtocolMappers
public static void updateProtocolMappers(ProtocolMapperContainerModel client)
-
migrateOldOfflineToken
public static void migrateOldOfflineToken(KeycloakSession session, RealmModel realm, ClientModel client, UserModel user) throws OAuthErrorException
- Throws:
OAuthErrorException
-
setDefaultClientAuthenticatorType
public static void setDefaultClientAuthenticatorType(ClientModel s)
-
isOIDCNonBearerOnlyClient
public static boolean isOIDCNonBearerOnlyClient(ClientModel c)
-
-