本文整理匯總了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();
}