Examples of JaasAuthenticationProperties


Examples of org.springframework.boot.actuate.autoconfigure.ShellProperties.JaasAuthenticationProperties

  @Bean
  @ConditionalOnProperty(prefix = "shell", name = "auth", havingValue = "jaas")
  @ConditionalOnMissingBean({ CrshShellAuthenticationProperties.class })
  public CrshShellAuthenticationProperties jaasAuthenticationProperties() {
    return new JaasAuthenticationProperties();
  }
View Full Code Here

Examples of org.springframework.boot.actuate.autoconfigure.ShellProperties.JaasAuthenticationProperties

    assertNull(p.get("crash.telnet.port"));
  }

  @Test
  public void testBindingJaas() {
    JaasAuthenticationProperties props = new JaasAuthenticationProperties();
    RelaxedDataBinder binder = new RelaxedDataBinder(props, "shell.auth.jaas");
    binder.setConversionService(new DefaultConversionService());
    Map<String, String> map = new HashMap<String, String>();
    map.put("shell.auth.jaas.domain", "my-test-domain");
    binder.bind(new MutablePropertyValues(map));
    assertFalse(binder.getBindingResult().hasErrors());

    Properties p = new Properties();
    props.applyToCrshShellConfig(p);

    assertEquals("my-test-domain", p.get("crash.auth.jaas.domain"));
  }
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.