Search in sources :

Example 21 with JustInTimeProvisioningConfig

use of org.wso2.carbon.identity.application.common.model.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;
}
Also used : JustInTimeProvisioningConfig(org.wso2.carbon.identity.application.common.model.JustInTimeProvisioningConfig) IdentityProvider(org.wso2.carbon.identity.application.common.model.IdentityProvider) ProvisioningConnectorConfig(org.wso2.carbon.identity.application.common.model.ProvisioningConnectorConfig)

Aggregations

JustInTimeProvisioningConfig (org.wso2.carbon.identity.application.common.model.JustInTimeProvisioningConfig)8 ArrayList (java.util.ArrayList)7 ProvisioningConnectorConfig (org.wso2.carbon.identity.application.common.model.ProvisioningConnectorConfig)6 IdentityProvider (org.wso2.carbon.identity.application.common.model.idp.xsd.IdentityProvider)6 JustInTimeProvisioningConfig (org.wso2.carbon.identity.application.common.model.idp.xsd.JustInTimeProvisioningConfig)6 IdentityProvider (org.wso2.carbon.identity.application.common.model.IdentityProvider)5 FederatedAuthenticatorConfig (org.wso2.carbon.identity.application.common.model.idp.xsd.FederatedAuthenticatorConfig)4 JustInTimeProvisioningConfig (org.wso2.carbon.identity.application.common.model.xsd.JustInTimeProvisioningConfig)4 OutboundProvisioningConfig (org.wso2.carbon.identity.application.common.model.xsd.OutboundProvisioningConfig)4 IdentityProviderManagementException (org.wso2.carbon.idp.mgt.IdentityProviderManagementException)4 PreparedStatement (java.sql.PreparedStatement)3 ResultSet (java.sql.ResultSet)3 Test (org.testng.annotations.Test)3 ClaimConfig (org.wso2.carbon.identity.application.common.model.ClaimConfig)3 IdentityProviderProperty (org.wso2.carbon.identity.application.common.model.IdentityProviderProperty)3 IdentityProvider (org.wso2.carbon.identity.application.common.model.xsd.IdentityProvider)3 InboundProvisioningConfig (org.wso2.carbon.identity.application.common.model.xsd.InboundProvisioningConfig)3 ProvisioningConnectorConfig (org.wso2.carbon.identity.application.common.model.xsd.ProvisioningConnectorConfig)3 ServiceProvider (org.wso2.carbon.identity.application.common.model.xsd.ServiceProvider)3 SQLException (java.sql.SQLException)2