@Configuration @ConditionalOnClass(value=) @EnableConfigurationProperties(value=CrshProperties.class) public class CrshAutoConfiguration extends Object
Auto-configuration for embedding an extensible shell
into a Spring Boot enabled application. By default a SSH daemon is started on port 2000
with a default username user and password (default password is logged
during application startup).
This configuration will auto detect the existence of a Spring Security
AuthenticationManager and will delegate authentication requests for shell
access to this detected instance.
To add customizations to the shell simply define beans of type CRaSHPlugin in
the application context. Those beans will get auto detected during startup and
registered with the underlying shell infrastructure.
Additional shell commands can be implemented using the guide and documentation at crashub.org. By default Boot will search for commands
using the following classpath scanning pattern classpath*:/commands/**. To
add different locations or override the default use
shell.command_path_patterns in your application configuration.
| Modifier and Type | Class and Description |
|---|---|
static class |
CrshAutoConfiguration.CrshBootstrap |
static class |
CrshAutoConfiguration.ShellAuthenticationManager |
| Constructor and Description |
|---|
CrshAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
CrshProperties.AuthenticationProperties |
jaasAuthenticationProperties() |
CrshProperties.AuthenticationProperties |
keyAuthenticationProperties() |
PluginLifeCycle |
shellBootstrap() |
CrshProperties.AuthenticationProperties |
simpleAuthenticationProperties() |
CrshProperties.AuthenticationProperties |
SpringAuthenticationProperties() |
@Bean @ConditionalOnMissingBean(value=CrshProperties.AuthenticationProperties.class) public CrshProperties.AuthenticationProperties jaasAuthenticationProperties()
@Bean @ConditionalOnMissingBean(value=CrshProperties.AuthenticationProperties.class) public CrshProperties.AuthenticationProperties keyAuthenticationProperties()
@Bean @ConditionalOnMissingBean(value=CrshProperties.AuthenticationProperties.class) public CrshProperties.AuthenticationProperties simpleAuthenticationProperties()
@Bean @ConditionalOnMissingBean(value=CrshProperties.AuthenticationProperties.class) public CrshProperties.AuthenticationProperties SpringAuthenticationProperties()
@Bean @ConditionalOnMissingBean(value=) public PluginLifeCycle shellBootstrap()
Copyright © 2013. All rights reserved.