Package org.crsh.plugin

Examples of org.crsh.plugin.PluginLifeCycle


    this.context.setServletContext(new MockServletContext());
    this.context.register(SecurityConfiguration.class);
    this.context.register(CrshAutoConfiguration.class);
    this.context.refresh();

    PluginLifeCycle lifeCycle = this.context.getBean(PluginLifeCycle.class);
    assertEquals("key", lifeCycle.getConfig().get("crash.auth"));
    assertEquals("~/test.pem", lifeCycle.getConfig().get("crash.auth.key.path"));
  }
View Full Code Here


    this.context.setServletContext(new MockServletContext());
    this.context.register(SecurityConfiguration.class);
    this.context.register(CrshAutoConfiguration.class);
    this.context.refresh();

    PluginLifeCycle lifeCycle = this.context.getBean(PluginLifeCycle.class);
    assertEquals("simple", lifeCycle.getConfig().get("crash.auth"));

    AuthenticationPlugin<String> authenticationPlugin = null;
    String authentication = lifeCycle.getConfig().getProperty("crash.auth");
    assertNotNull(authentication);
    for (AuthenticationPlugin plugin : lifeCycle.getContext().getPlugins(
        AuthenticationPlugin.class)) {
      if (authentication.equals(plugin.getName())) {
        authenticationPlugin = plugin;
        break;
      }
View Full Code Here

    this.context.setServletContext(new MockServletContext());
    this.context.register(SecurityConfiguration.class);
    this.context.register(CrshAutoConfiguration.class);
    this.context.refresh();

    PluginLifeCycle lifeCycle = this.context.getBean(PluginLifeCycle.class);

    AuthenticationPlugin<String> authenticationPlugin = null;
    String authentication = lifeCycle.getConfig().getProperty("crash.auth");
    assertNotNull(authentication);
    for (AuthenticationPlugin plugin : lifeCycle.getContext().getPlugins(
        AuthenticationPlugin.class)) {
      if (authentication.equals(plugin.getName())) {
        authenticationPlugin = plugin;
        break;
      }
View Full Code Here

    this.context.register(SecurityAutoConfiguration.class);
    this.context.register(SecurityConfiguration.class);
    this.context.register(CrshAutoConfiguration.class);
    this.context.refresh();

    PluginLifeCycle lifeCycle = this.context.getBean(PluginLifeCycle.class);

    AuthenticationPlugin<String> authenticationPlugin = null;
    String authentication = lifeCycle.getConfig().getProperty("crash.auth");
    assertNotNull(authentication);
    for (AuthenticationPlugin plugin : lifeCycle.getContext().getPlugins(
        AuthenticationPlugin.class)) {
      if (authentication.equals(plugin.getName())) {
        authenticationPlugin = plugin;
        break;
      }
View Full Code Here

TOP

Related Classes of org.crsh.plugin.PluginLifeCycle

Copyright © 2018 www.massapicom. 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.