本文整理汇总了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));
}
示例4: securityEvaluationContextExtension
import org.springframework.security.data.repository.query.SecurityEvaluationContextExtension; //导入依赖的package包/类
@Bean
public SecurityEvaluationContextExtension securityEvaluationContextExtension() {
return new SecurityEvaluationContextExtension();
}
示例5: securityExtension
import org.springframework.security.data.repository.query.SecurityEvaluationContextExtension; //导入依赖的package包/类
@Bean
public EvaluationContextExtension securityExtension() {
return new SecurityEvaluationContextExtension();
}
示例6: securityExtension
import org.springframework.security.data.repository.query.SecurityEvaluationContextExtension; //导入依赖的package包/类
@Bean
EvaluationContextExtension securityExtension() {
return new SecurityEvaluationContextExtension();
}
示例7: securityEvaluationContextExtension
import org.springframework.security.data.repository.query.SecurityEvaluationContextExtension; //导入依赖的package包/类
@Bean
public SecurityEvaluationContextExtension securityEvaluationContextExtension() {
return new SecurityEvaluationContextExtension();
}
示例8: securityEvaluationContextExtension
import org.springframework.security.data.repository.query.SecurityEvaluationContextExtension; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean(SecurityEvaluationContextExtension.class)
public SecurityEvaluationContextExtension securityEvaluationContextExtension() {
return new SecurityEvaluationContextExtension();
}