当前位置: 首页>>代码示例>>Java>>正文


Java SecurityEvaluationContextExtension类代码示例

本文整理汇总了Java中org.springframework.security.data.repository.query.SecurityEvaluationContextExtension的典型用法代码示例。如果您正苦于以下问题:Java SecurityEvaluationContextExtension类的具体用法?Java SecurityEvaluationContextExtension怎么用?Java SecurityEvaluationContextExtension使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


SecurityEvaluationContextExtension类属于org.springframework.security.data.repository.query包,在下文中一共展示了SecurityEvaluationContextExtension类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: registerJwtAutoConfiguration

import org.springframework.security.data.repository.query.SecurityEvaluationContextExtension; //导入依赖的package包/类
/**
 * Checks whether beans are registered after auto configuration class has been registered
 */
@Test
public void registerJwtAutoConfiguration() {
  this.context.register(SecurityProperties.class);
  this.context.register(JwtAutoConfiguration.class);
  this.context.refresh();

  //assert
  this.context.getBean(TokenProvider.class);
  this.context.getBean(PasswordEncoder.class);
  this.context.getBean(UserDetailsService.class);
  this.context.getBean(SecurityEvaluationContextExtension.class);
  this.context.getBean(WebSecurityConfigurerAdapter.class);
}
 
开发者ID:Cobrijani,项目名称:jwt-security-spring-boot-starter,代码行数:17,代码来源:JwtSecurityAutoconfigureApplicationTests.java

示例2: testSecurityEvaluationContextExtensionSupport

import org.springframework.security.data.repository.query.SecurityEvaluationContextExtension; //导入依赖的package包/类
@Test
public void testSecurityEvaluationContextExtensionSupport() {
	this.context = new AnnotationConfigWebApplicationContext();
	this.context.setServletContext(new MockServletContext());
	this.context.register(AuthenticationManagerCustomizer.class,
			SecurityAutoConfiguration.class, ServerPropertiesAutoConfiguration.class);
	this.context.refresh();
	assertThat(this.context.getBean(SecurityEvaluationContextExtension.class))
			.isNotNull();
}
 
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:11,代码来源:SecurityAutoConfigurationTests.java

示例3: testSecurityEvaluationContextExtensionSupport

import org.springframework.security.data.repository.query.SecurityEvaluationContextExtension; //导入依赖的package包/类
@Test
public void testSecurityEvaluationContextExtensionSupport() {
	this.context = new AnnotationConfigWebApplicationContext();
	this.context.setServletContext(new MockServletContext());
	this.context.register(AuthenticationManagerCustomizer.class,
			SecurityAutoConfiguration.class, ServerPropertiesAutoConfiguration.class);
	this.context.refresh();
	assertNotNull(this.context.getBean(SecurityEvaluationContextExtension.class));
}
 
开发者ID:Nephilim84,项目名称:contestparser,代码行数:10,代码来源:SecurityAutoConfigurationTests.java

示例4: securityEvaluationContextExtension

import org.springframework.security.data.repository.query.SecurityEvaluationContextExtension; //导入依赖的package包/类
@Bean
public SecurityEvaluationContextExtension securityEvaluationContextExtension() {
    return new SecurityEvaluationContextExtension();
}
 
开发者ID:xm-online,项目名称:xm-uaa,代码行数:5,代码来源:UaaWebSecurityConfiguration.java

示例5: securityExtension

import org.springframework.security.data.repository.query.SecurityEvaluationContextExtension; //导入依赖的package包/类
@Bean
public EvaluationContextExtension securityExtension() {
	return new SecurityEvaluationContextExtension();
}
 
开发者ID:xabgesagtx,项目名称:fat-lining,代码行数:5,代码来源:FatLiningApplication.java

示例6: securityExtension

import org.springframework.security.data.repository.query.SecurityEvaluationContextExtension; //导入依赖的package包/类
@Bean
EvaluationContextExtension securityExtension() {
	return new SecurityEvaluationContextExtension();
}
 
开发者ID:Just-Fun,项目名称:spring-data-examples,代码行数:5,代码来源:SecurityConfiguration.java

示例7: securityEvaluationContextExtension

import org.springframework.security.data.repository.query.SecurityEvaluationContextExtension; //导入依赖的package包/类
@Bean
public SecurityEvaluationContextExtension securityEvaluationContextExtension() {
	return new SecurityEvaluationContextExtension();
}
 
开发者ID:JerryNiu,项目名称:cloud,代码行数:5,代码来源:SecurityConfig.java

示例8: securityEvaluationContextExtension

import org.springframework.security.data.repository.query.SecurityEvaluationContextExtension; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean(SecurityEvaluationContextExtension.class)
public SecurityEvaluationContextExtension securityEvaluationContextExtension() {
  return new SecurityEvaluationContextExtension();
}
 
开发者ID:Cobrijani,项目名称:jwt-security-spring-boot-starter,代码行数:6,代码来源:JwtAutoConfiguration.java


注:本文中的org.springframework.security.data.repository.query.SecurityEvaluationContextExtension类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。