當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。