public class DefaultMigrationProvider extends Object implements MigrationProvider
| Constructor and Description |
|---|
DefaultMigrationProvider(KeycloakSession session) |
| Modifier and Type | Method and Description |
|---|---|
ClientScopeModel |
addOIDCMicroprofileJWTClientScope(RealmModel realm)
Adds the
microprofile-jwt optional client scope to the realm and returns the created scope. |
ClientScopeModel |
addOIDCRolesClientScope(RealmModel realm)
Add 'roles' client scope or return it if already exists
|
ClientScopeModel |
addOIDCWebOriginsClientScope(RealmModel realm)
Add 'web-origins' client scope or return it if already exists
|
void |
close() |
Map<String,ProtocolMapperModel> |
getBuiltinMappers(String protocol) |
List<ProtocolMapperRepresentation> |
getMappersForClaimMask(Long claimMask) |
void |
setupAdminCli(RealmModel realm) |
public DefaultMigrationProvider(KeycloakSession session)
public List<ProtocolMapperRepresentation> getMappersForClaimMask(Long claimMask)
getMappersForClaimMask in interface MigrationProviderclaimMask - mask used on ClientModel in 1.1.0public Map<String,ProtocolMapperModel> getBuiltinMappers(String protocol)
getBuiltinMappers in interface MigrationProviderpublic void setupAdminCli(RealmModel realm)
setupAdminCli in interface MigrationProviderpublic ClientScopeModel addOIDCRolesClientScope(RealmModel realm)
MigrationProvideraddOIDCRolesClientScope in interface MigrationProviderpublic ClientScopeModel addOIDCWebOriginsClientScope(RealmModel realm)
MigrationProvideraddOIDCWebOriginsClientScope in interface MigrationProviderpublic ClientScopeModel addOIDCMicroprofileJWTClientScope(RealmModel realm)
MigrationProvidermicroprofile-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.addOIDCMicroprofileJWTClientScope in interface MigrationProviderrealm - the realm to which the scope is to be added.microprofile-jwt client scope that was either created or already exists in the realm.Copyright © 2021 JBoss by Red Hat. All rights reserved.