Package org.keycloak.services.migration
Class DefaultMigrationProvider
java.lang.Object
org.keycloak.services.migration.DefaultMigrationProvider
- All Implemented Interfaces:
MigrationProvider
,Provider
Various common utils needed for migration from older version to newer
- Author:
- Marek Posolda
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addOIDCAcrClientScope
(RealmModel realm) Add 'acr' client scope or return it if already existsAdd 'basic' client scope or return it if already existsAdds themicroprofile-jwt
optional client scope to the realm and returns the created scope.Add 'roles' client scope or return it if already existsAdd 'web-origins' client scope or return it if already existsvoid
close()
getBuiltinMappers
(String protocol) getMappersForClaimMask
(Long claimMask) void
setupAdminCli
(RealmModel realm)
-
Constructor Details
-
DefaultMigrationProvider
-
-
Method Details
-
getMappersForClaimMask
- Specified by:
getMappersForClaimMask
in interfaceMigrationProvider
- Parameters:
claimMask
- mask used on ClientModel in 1.1.0- Returns:
- set of 1.2.0.Beta1 protocol mappers corresponding to given claimMask
-
getBuiltinMappers
- Specified by:
getBuiltinMappers
in interfaceMigrationProvider
-
setupAdminCli
- Specified by:
setupAdminCli
in interfaceMigrationProvider
-
addOIDCRolesClientScope
Description copied from interface:MigrationProvider
Add 'roles' client scope or return it if already exists- Specified by:
addOIDCRolesClientScope
in interfaceMigrationProvider
- Returns:
- created or already existing client scope 'roles'
-
addOIDCWebOriginsClientScope
Description copied from interface:MigrationProvider
Add 'web-origins' client scope or return it if already exists- Specified by:
addOIDCWebOriginsClientScope
in interfaceMigrationProvider
- Returns:
- created or already existing client scope 'web-origins'
-
addOIDCMicroprofileJWTClientScope
Description copied from interface:MigrationProvider
Adds themicroprofile-jwt
optional client scope to the realm and returns the created scope. If the scope already exists in the realm then the existing scope is returned.- Specified by:
addOIDCMicroprofileJWTClientScope
in interfaceMigrationProvider
- Parameters:
realm
- the realm to which the scope is to be added.- Returns:
- a reference to the
microprofile-jwt
client scope that was either created or already exists in the realm.
-
addOIDCAcrClientScope
Description copied from interface:MigrationProvider
Add 'acr' client scope or return it if already exists- Specified by:
addOIDCAcrClientScope
in interfaceMigrationProvider
-
addOIDCBasicClientScope
Description copied from interface:MigrationProvider
Add 'basic' client scope or return it if already exists- Specified by:
addOIDCBasicClientScope
in interfaceMigrationProvider
- Returns:
- created or already existing client scope 'basic'
-
close
public void close()
-