Java 类org.springframework.boot.actuate.autoconfigure.ShellProperties.CrshShellAuthenticationProperties 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:CrshAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean(CrshShellAuthenticationProperties.class)
public SpringAuthenticationProperties springAuthenticationProperties() {
    // In case no management.shell.auth.type property is provided fall back to
    // Spring Security based authentication and get role to access shell from
    // ManagementServerProperties.
    // In case management.shell.auth.type is set to spring and roles are
    // configured using shell.auth.spring.roles the below default role will be
    // overridden by ConfigurationProperties.
    SpringAuthenticationProperties authenticationProperties = new SpringAuthenticationProperties();
    if (this.management != null) {
        List<String> roles = this.management.getSecurity().getRoles();
        authenticationProperties
                .setRoles(roles.toArray(new String[roles.size()]));
    }
    return authenticationProperties;
}
项目:spring-boot-concourse    文件:CrshAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean(CrshShellAuthenticationProperties.class)
public SpringAuthenticationProperties springAuthenticationProperties() {
    // In case no management.shell.auth.type property is provided fall back to
    // Spring Security based authentication and get role to access shell from
    // ManagementServerProperties.
    // In case management.shell.auth.type is set to spring and roles are
    // configured using shell.auth.spring.roles the below default role will be
    // overridden by ConfigurationProperties.
    SpringAuthenticationProperties authenticationProperties = new SpringAuthenticationProperties();
    if (this.management != null) {
        List<String> roles = this.management.getSecurity().getRoles();
        authenticationProperties
                .setRoles(roles.toArray(new String[roles.size()]));
    }
    return authenticationProperties;
}
项目:contestparser    文件:CrshAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean(CrshShellAuthenticationProperties.class)
public SpringAuthenticationProperties springAuthenticationProperties() {
    // In case no shell.auth property is provided fall back to Spring Security
    // based authentication and get role to access shell from
    // ManagementServerProperties.
    // In case shell.auth is set to spring and roles are configured using
    // shell.auth.spring.roles the below default role will be overridden by
    // ConfigurationProperties.
    SpringAuthenticationProperties authenticationProperties = new SpringAuthenticationProperties();
    if (this.management != null) {
        authenticationProperties.setRoles(
                new String[] { this.management.getSecurity().getRole() });
    }
    return authenticationProperties;
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:CrshAutoConfiguration.java   
@Bean
@ConditionalOnProperty(prefix = AUTH_PREFIX, name = "type", havingValue = "jaas")
@ConditionalOnMissingBean(CrshShellAuthenticationProperties.class)
public JaasAuthenticationProperties jaasAuthenticationProperties() {
    return new JaasAuthenticationProperties();
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:CrshAutoConfiguration.java   
@Bean
@ConditionalOnProperty(prefix = AUTH_PREFIX, name = "type", havingValue = "key")
@ConditionalOnMissingBean(CrshShellAuthenticationProperties.class)
public KeyAuthenticationProperties keyAuthenticationProperties() {
    return new KeyAuthenticationProperties();
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:CrshAutoConfiguration.java   
@Bean
@ConditionalOnProperty(prefix = AUTH_PREFIX, name = "type", havingValue = "simple", matchIfMissing = true)
@ConditionalOnMissingBean(CrshShellAuthenticationProperties.class)
public SimpleAuthenticationProperties simpleAuthenticationProperties() {
    return new SimpleAuthenticationProperties();
}
项目:spring-boot-concourse    文件:CrshAutoConfiguration.java   
@Bean
@ConditionalOnProperty(prefix = AUTH_PREFIX, name = "type", havingValue = "jaas")
@ConditionalOnMissingBean(CrshShellAuthenticationProperties.class)
public JaasAuthenticationProperties jaasAuthenticationProperties() {
    return new JaasAuthenticationProperties();
}
项目:spring-boot-concourse    文件:CrshAutoConfiguration.java   
@Bean
@ConditionalOnProperty(prefix = AUTH_PREFIX, name = "type", havingValue = "key")
@ConditionalOnMissingBean(CrshShellAuthenticationProperties.class)
public KeyAuthenticationProperties keyAuthenticationProperties() {
    return new KeyAuthenticationProperties();
}
项目:spring-boot-concourse    文件:CrshAutoConfiguration.java   
@Bean
@ConditionalOnProperty(prefix = AUTH_PREFIX, name = "type", havingValue = "simple", matchIfMissing = true)
@ConditionalOnMissingBean(CrshShellAuthenticationProperties.class)
public SimpleAuthenticationProperties simpleAuthenticationProperties() {
    return new SimpleAuthenticationProperties();
}
项目:contestparser    文件:CrshAutoConfiguration.java   
@Bean
@ConditionalOnProperty(prefix = "shell", name = "auth", havingValue = "jaas")
@ConditionalOnMissingBean(CrshShellAuthenticationProperties.class)
public JaasAuthenticationProperties jaasAuthenticationProperties() {
    return new JaasAuthenticationProperties();
}
项目:contestparser    文件:CrshAutoConfiguration.java   
@Bean
@ConditionalOnProperty(prefix = "shell", name = "auth", havingValue = "key")
@ConditionalOnMissingBean(CrshShellAuthenticationProperties.class)
public KeyAuthenticationProperties keyAuthenticationProperties() {
    return new KeyAuthenticationProperties();
}
项目:contestparser    文件:CrshAutoConfiguration.java   
@Bean
@ConditionalOnProperty(prefix = "shell", name = "auth", havingValue = "simple", matchIfMissing = true)
@ConditionalOnMissingBean(CrshShellAuthenticationProperties.class)
public SimpleAuthenticationProperties simpleAuthenticationProperties() {
    return new SimpleAuthenticationProperties();
}