类org.springframework.boot.actuate.info.InfoEndpoint源码实例Demo

下面列出了怎么用org.springframework.boot.actuate.info.InfoEndpoint的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: flowable-engine   文件: SecurityConfiguration.java
protected void configure(HttpSecurity http) throws Exception {

            http
                .sessionManagement()
                .sessionCreationPolicy(SessionCreationPolicy.STATELESS)
                .and()
                .csrf()
                .disable();

            http
                .requestMatcher(new ActuatorRequestMatcher())
                .authorizeRequests()
                .requestMatchers(EndpointRequest.to(InfoEndpoint.class, HealthEndpoint.class)).authenticated()
                .requestMatchers(EndpointRequest.toAnyEndpoint()).hasAnyAuthority(DefaultPrivileges.ACCESS_ADMIN)
                .and().httpBasic();
        }
 
源代码2 项目: flowable-engine   文件: SecurityConfiguration.java
protected void configure(HttpSecurity http) throws Exception {

            http
                .sessionManagement()
                .sessionCreationPolicy(SessionCreationPolicy.STATELESS)
                .and()
                .csrf()
                .disable();

            http
                .requestMatcher(new ActuatorRequestMatcher())
                .authorizeRequests()
                .requestMatchers(EndpointRequest.to(InfoEndpoint.class, HealthEndpoint.class)).authenticated()
                .requestMatchers(EndpointRequest.toAnyEndpoint()).hasAnyAuthority(DefaultPrivileges.ACCESS_ADMIN)
                .and().httpBasic();
        }
 
源代码3 项目: flowable-engine   文件: SecurityConfiguration.java
@Override
protected void configure(HttpSecurity http) throws Exception {

    http
        .sessionManagement()
        .sessionCreationPolicy(SessionCreationPolicy.STATELESS)
        .and()
        .csrf()
        .disable();

    http
        .requestMatcher(new ActuatorRequestMatcher())
        .authorizeRequests()
        .requestMatchers(EndpointRequest.to(InfoEndpoint.class, HealthEndpoint.class)).authenticated()
        .requestMatchers(EndpointRequest.toAnyEndpoint()).hasAnyAuthority(DefaultPrivileges.ACCESS_ADMIN)
        .and().httpBasic();
}
 
源代码4 项目: flowable-engine   文件: SecurityConfiguration.java
protected void configure(HttpSecurity http) throws Exception {

            http
                .sessionManagement()
                .sessionCreationPolicy(SessionCreationPolicy.STATELESS)
                .and()
                .csrf()
                .disable();

            http
                .requestMatcher(new ActuatorRequestMatcher())
                .authorizeRequests()
                .requestMatchers(EndpointRequest.to(InfoEndpoint.class, HealthEndpoint.class)).authenticated()
                .requestMatchers(EndpointRequest.toAnyEndpoint()).hasAnyAuthority(DefaultPrivileges.ACCESS_ADMIN)
                .and().httpBasic();
        }
 
源代码5 项目: ssh-shell-spring-boot   文件: ActuatorCommand.java
public ActuatorCommand(ApplicationContext applicationContext, Environment environment,
                       SshShellProperties properties, SshShellHelper helper,
                       @Lazy AuditEventsEndpoint audit, @Lazy BeansEndpoint beans,
                       @Lazy ConditionsReportEndpoint conditions,
                       @Lazy ConfigurationPropertiesReportEndpoint configprops, @Lazy EnvironmentEndpoint env,
                       @Lazy HealthEndpoint health,
                       @Lazy HttpTraceEndpoint httptrace, @Lazy InfoEndpoint info, @Lazy LoggersEndpoint loggers,
                       @Lazy MetricsEndpoint metrics,
                       @Lazy MappingsEndpoint mappings, @Lazy ScheduledTasksEndpoint scheduledtasks,
                       @Lazy ShutdownEndpoint shutdown,
                       @Lazy ThreadDumpEndpoint threaddump) {
    this.applicationContext = applicationContext;
    this.environment = environment;
    this.properties = properties;
    this.helper = helper;
    this.audit = audit;
    this.beans = beans;
    this.conditions = conditions;
    this.configprops = configprops;
    this.env = env;
    this.health = health;
    this.httptrace = httptrace;
    this.info = info;
    this.loggers = loggers;
    this.metrics = metrics;
    this.mappings = mappings;
    this.scheduledtasks = scheduledtasks;
    this.shutdown = shutdown;
    this.threaddump = threaddump;
}
 
源代码6 项目: Kafdrop   文件: ServiceDiscoveryConfiguration.java
@Bean
public ServiceDiscoveryApplicationListener serviceDiscoveryStartupListener(WebServerApplicationContext webContext,
                                                                           ServiceDiscovery serviceDiscovery,
                                                                           Environment environment,
                                                                           InfoEndpoint infoEndpoint)
{
   return new ServiceDiscoveryApplicationListener(webContext, serviceDiscovery, environment, infoEndpoint);
}
 
源代码7 项目: Kafdrop   文件: ServiceDiscoveryConfiguration.java
public ServiceDiscoveryApplicationListener(WebServerApplicationContext webContext,
                                           ServiceDiscovery serviceDiscovery,
                                           Environment environment,
                                           InfoEndpoint infoEndpoint)
{
   this.webContext = webContext;
   this.serviceDiscovery = serviceDiscovery;
   this.environment = environment;
   this.infoEndpoint = infoEndpoint;
}
 
@Bean
@ConditionalOnMissingBean
public ActuatorInfoDimension createInfoDimension(InfoEndpoint endpoint) {
    return new ActuatorInfoDimension(endpoint);
}
 
public ActuatorInfoDimension(InfoEndpoint endpoint) {
    this.endpoint = endpoint;
}
 
@Bean
public ActuatorInfoDimension createInfoDimension(InfoEndpoint endpoint) {
    return new ActuatorInfoDimension(endpoint);
}
 
源代码11 项目: ssh-shell-spring-boot   文件: ActuatorCommand.java
/**
 * @return whether `info` command is available
 */
public Availability infoAvailability() {
    return availability("info", InfoEndpoint.class);
}
 
源代码12 项目: sshd-shell-spring-boot   文件: InfoCommand.java
InfoCommand(@Value("${sshd.system.command.roles.info}") String[] systemRoles, InfoEndpoint infoEndpoint) {
    super(systemRoles);
    this.infoEndpoint = infoEndpoint;
}
 
源代码13 项目: flowable-engine   文件: SecurityConfiguration.java
@Override
protected void configure(HttpSecurity http) throws Exception {
    HttpSecurity httpSecurity = http.authenticationProvider(authenticationProvider())
            .sessionManagement()
            .sessionCreationPolicy(SessionCreationPolicy.STATELESS)
            .and()
            .csrf().disable();

    if (restAppProperties.getCors().isEnabled()) {
        httpSecurity.apply(new PropertyBasedCorsFilter(restAppProperties));
    }

    // Swagger docs
    if (isSwaggerDocsEnabled()) {
        httpSecurity
            .authorizeRequests()
            .antMatchers("/docs/**").permitAll();

    } else {
        httpSecurity
            .authorizeRequests()
            .antMatchers("/docs/**").denyAll();
        
    }

    httpSecurity
        .authorizeRequests()
        .requestMatchers(EndpointRequest.to(InfoEndpoint.class, HealthEndpoint.class)).authenticated()
        .requestMatchers(EndpointRequest.toAnyEndpoint()).hasAnyAuthority(SecurityConstants.ACCESS_ADMIN);

    // Rest API access
    if (isVerifyRestApiPrivilege()) {
        httpSecurity
            .authorizeRequests()
            .anyRequest()
            .hasAuthority(SecurityConstants.PRIVILEGE_ACCESS_REST_API).and ().httpBasic();
        
    } else {
        httpSecurity
        .authorizeRequests()
        .anyRequest()
        .authenticated().and().httpBasic();
    }
}
 
源代码14 项目: tutorials   文件: InfoWebEndpointExtension.java
public InfoWebEndpointExtension(InfoEndpoint infoEndpoint) {
    this.delegate = infoEndpoint;
}
 
 类所在包
 类方法
 同包方法