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 MigrationProvider
claimMask
- mask used on ClientModel in 1.1.0public Map<String,ProtocolMapperModel> getBuiltinMappers(String protocol)
getBuiltinMappers
in interface MigrationProvider
public void setupAdminCli(RealmModel realm)
setupAdminCli
in interface MigrationProvider
public ClientScopeModel addOIDCRolesClientScope(RealmModel realm)
MigrationProvider
addOIDCRolesClientScope
in interface MigrationProvider
public ClientScopeModel addOIDCWebOriginsClientScope(RealmModel realm)
MigrationProvider
addOIDCWebOriginsClientScope
in interface MigrationProvider
public ClientScopeModel addOIDCMicroprofileJWTClientScope(RealmModel realm)
MigrationProvider
microprofile-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 MigrationProvider
realm
- 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 © 2020 JBoss by Red Hat. All rights reserved.