Examples of AdapterConfig


Examples of com.cloudloop.config.AdapterConfig

              CloudProvider provider = constructor.newInstance(  );
              String name = provider.getName( );
              AdapterType type = provider.getAdapterType( );
              Map<String, String> requiredProperties = provider.getRequiredConfigProperties( );
              Map<String, String> optionalProperties = provider.getOptionalConfigProperties( );
              AdapterConfig schema =
                new AdapterConfig(name, clazz, type, requiredProperties, optionalProperties);
              configs.add( schema );
          }
        }
      catch (Throwable err)
      {
View Full Code Here

Examples of com.cloudloop.config.AdapterConfig

    // adapters must be configured
    // all required props must be set
    for ( Store store : stores )
    {
      String adapterName = store.getAdapter( );
      AdapterConfig adapterCfg = CliSession.getSession( ).getCloudloop( ).getProviderFactory( ).getAdapterConfig( adapterName );
      if ( adapterCfg == null )
      {
        error.println("Adapter '" + adapterName + "' has not been configured but is set as the adapter for store '" + store.getName( ) + "'." );
        error.flush( );
        return false;
      }
      Map<String, String> requiredProps = adapterCfg.getRequiredProperties( );
      List<PropertyType> configuredProps = store.getProperty( );
      for ( String propName : requiredProps.keySet( ) )
      {
        boolean propFound = false;
        for ( PropertyType prop : configuredProps )
View Full Code Here

Examples of com.cloudloop.config.AdapterConfig

 
  private void editProperties( ConfigurationWorkflow parent, ConfigurationWorkflowElementOutput output, CloudloopConfig config ,
      Store provider, PrintWriter writer, BufferedReader reader, PrintWriter error )
  { 
    ProviderFactory factory = parent.getSession( ).getProviderFactory( );
    AdapterConfig adapterCfg = factory.getAdapterConfig( provider.getAdapter( ) );
    if ( adapterCfg == null )
    {
      throw new IllegalStateException("Could not find configured adapter '" + provider.getAdapter( ) + "'.");
    }
   
View Full Code Here

Examples of org.keycloak.representations.adapters.config.AdapterConfig

*/
public class BootstrapListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        AdapterDeploymentContext deploymentContext = (AdapterDeploymentContext)sce.getServletContext().getAttribute(AdapterDeploymentContext.class.getName());
        AdapterConfig config = new AdapterConfig();
        config.setRealm("aerogear");
        config.setResource("unified-push-server");
        config.setAuthServerUrl("/auth");
        config.setSslNotRequired(true);
        //config.setBearerOnly(true);
        config.setDisableTrustManager(true);
        deploymentContext.updateDeployment(config);

    }
View Full Code Here

Examples of org.keycloak.representations.adapters.config.AdapterConfig

*/
public class BootstrapListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        AdapterDeploymentContext deploymentContext = (AdapterDeploymentContext)sce.getServletContext().getAttribute(AdapterDeploymentContext.class.getName());
        AdapterConfig config = new AdapterConfig();
        config.setRealm("aerogear");
        config.setResource("unified-push-server");
        config.setAuthServerUrl("/auth");
        config.setSslRequired(SslRequired.EXTERNAL.name());
        config.setPublicClient(true);
        config.setDisableTrustManager(true);
        deploymentContext.updateDeployment(config);

    }
View Full Code Here

Examples of org.keycloak.representations.adapters.config.AdapterConfig

        System.setProperty("con.pool.size", "200");
        System.setProperty("allow.any.hostname", "true");

        InputStream is = getClass().getClassLoader().getResourceAsStream("keycloak.json");

        AdapterConfig config = JsonSerialization.readValue(is, AdapterConfig.class, true);
        Assert.assertEquals("http://foo:8080/auth", config.getAuthServerUrl());
        Assert.assertEquals("external", config.getSslRequired());
        Assert.assertEquals("angular-product${non.existing}", config.getResource());
        Assert.assertTrue(config.isPublicClient());
        Assert.assertTrue(config.isAllowAnyHostname());
        Assert.assertEquals(100, config.getCorsMaxAge());
        Assert.assertEquals(200, config.getConnectionPoolSize());
    }
View Full Code Here

Examples of org.keycloak.representations.adapters.config.AdapterConfig

    }

    public static KeycloakDeployment build(InputStream is) {
        ObjectMapper mapper = new ObjectMapper(new SystemPropertiesJsonParserFactory());
        mapper.setSerializationInclusion(JsonSerialize.Inclusion.NON_DEFAULT);
        AdapterConfig adapterConfig;
        try {
            adapterConfig = mapper.readValue(is, AdapterConfig.class);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
View Full Code Here

Examples of org.keycloak.representations.adapters.config.AdapterConfig

* @version $Revision: 1 $
*/
public class ServletOAuthClientBuilder {

    public static ServletOAuthClient build(InputStream is) {
        AdapterConfig adapterConfig = getAdapterConfig(is);
        return build(adapterConfig);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.