本文整理汇总了Java中org.springframework.security.oauth2.provider.client.JdbcClientDetailsService类的典型用法代码示例。如果您正苦于以下问题:Java JdbcClientDetailsService类的具体用法?Java JdbcClientDetailsService怎么用?Java JdbcClientDetailsService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
JdbcClientDetailsService类属于org.springframework.security.oauth2.provider.client包,在下文中一共展示了JdbcClientDetailsService类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: performBuild
import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService; //导入依赖的package包/类
@Override
protected ClientDetailsService performBuild() {
JdbcClientDetailsService clientDetailsService = new JdbcClientDetailsService(dataSource);
clientDetailsService.setPasswordEncoder(passwordEncoder);
clientDetails.forEach(clientDetailsService::addClientDetails);
return clientDetailsService;
}
示例2: configure
import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService; //导入依赖的package包/类
@Override
public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {
if (clientDetailsService instanceof JdbcClientDetailsService) {
((JdbcClientDetailsService) clientDetailsService).setPasswordEncoder(new StandardPasswordEncoder());
}
endpoints.tokenStore(tokenStore).userApprovalHandler(userApprovalHandler)
.authenticationManager(authenticationManager)
.clientDetailsService(clientDetailsService)
.authorizationCodeServices(authorizationCodeServices)
;
}
示例3: clientRegistrationService
import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService; //导入依赖的package包/类
@Bean
public ClientRegistrationService clientRegistrationService() {
return new JdbcClientDetailsService(dataSource);
}
示例4: clientDetailsService
import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService; //导入依赖的package包/类
@Bean
public ClientDetailsService clientDetailsService() {
return new JdbcClientDetailsService(dataSource);
}
示例5: jdbcClientDetailsService
import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService; //导入依赖的package包/类
@Bean
public ClientDetailsService jdbcClientDetailsService() {
return new JdbcClientDetailsService(dataSource);
}
示例6: clientDetails
import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService; //导入依赖的package包/类
@Bean
public ClientDetailsService clientDetails() {
return new JdbcClientDetailsService(dataSource);
}
示例7: clientDetailsService
import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService; //导入依赖的package包/类
@Bean
public JdbcClientDetailsService clientDetailsService() {
return new JdbcClientDetailsService(dataSource);
}
示例8: clientDetails
import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService; //导入依赖的package包/类
@Bean
public ClientDetailsService clientDetails() {
if (dataSource == null) dataSource();
return new JdbcClientDetailsService(dataSource);
}
示例9: getClientDetailsService
import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService; //导入依赖的package包/类
@Bean
ClientDetailsService getClientDetailsService(){
DataSource dataSource = context.getBean(DataSource.class);
JdbcClientDetailsService clientDetailsService = new JdbcClientDetailsService(dataSource);
return clientDetailsService;
}
示例10: clientDetails
import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService; //导入依赖的package包/类
@Bean
public ClientDetailsService clientDetails() {
return new JdbcClientDetailsService(dataSource);
}
示例11: IndexController
import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService; //导入依赖的package包/类
public IndexController(JdbcClientDetailsService clientDetailsService, ApprovalStore approvalStore, TokenStore tokenStore) {
this.clientDetailsService = clientDetailsService;
this.approvalStore = approvalStore;
this.tokenStore = tokenStore;
}
示例12: clientDetailsService
import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService; //导入依赖的package包/类
/**
* @return the service used to retrieve OAuth2 client details
*/
@Bean
public ClientDetailsService clientDetailsService() {
return new JdbcClientDetailsService(dataSource);
}
示例13: ClientController
import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService; //导入依赖的package包/类
public ClientController(JdbcClientDetailsService clientDetailsService) {
this.clientDetailsService = clientDetailsService;
}
示例14: clientDetailsService
import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService; //导入依赖的package包/类
/**
* We expose the JdbcClientDetailsService because it has extra methods that the Interface does not have. E.g.
* {@link org.springframework.security.oauth2.provider.client.JdbcClientDetailsService#listClientDetails()} which we need for the
* admin page.
*/
@Bean
public JdbcClientDetailsService clientDetailsService() {
return new JdbcClientDetailsService(oauthDataSource());
}