use of org.wso2.carbon.identity.application.common.model.idp.xsd.JustInTimeProvisioningConfig in project identity-api-server by wso2.
the class UpdateProvisioningConfiguration method getProvisioningIdentityProvider.
private IdentityProvider getProvisioningIdentityProvider(OutboundProvisioningConfiguration config) {
IdentityProvider identityProvider = new IdentityProvider();
identityProvider.setIdentityProviderName(config.getIdp());
JustInTimeProvisioningConfig jitProvisioningConfig = new JustInTimeProvisioningConfig();
setIfNotNull(config.getJit(), jitProvisioningConfig::setProvisioningEnabled);
identityProvider.setJustInTimeProvisioningConfig(jitProvisioningConfig);
ProvisioningConnectorConfig provisioningConfig = new ProvisioningConnectorConfig();
provisioningConfig.setName(config.getConnector());
provisioningConfig.setBlocking(config.getBlocking());
provisioningConfig.setRulesEnabled(config.getRules());
identityProvider.setDefaultProvisioningConnectorConfig(provisioningConfig);
return identityProvider;
}
Aggregations