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


Java JdbcClientDetailsService类代码示例

本文整理汇总了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;
}
 
开发者ID:petrbouda,项目名称:joyrest,代码行数:8,代码来源:JdbcClientDetailsServiceConfigurer.java

示例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)
			;
}
 
开发者ID:ishaigor,项目名称:rest-retro-sample,代码行数:12,代码来源:OAuth2AuthorizationServerConfigurer.java

示例3: clientRegistrationService

import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService; //导入依赖的package包/类
@Bean
public ClientRegistrationService clientRegistrationService() {
    return new JdbcClientDetailsService(dataSource);
}
 
开发者ID:PacktPublishing,项目名称:OAuth-2.0-Cookbook,代码行数:5,代码来源:OAuth2AuthorizationServer.java

示例4: clientDetailsService

import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService; //导入依赖的package包/类
@Bean
public ClientDetailsService clientDetailsService() {
    return new JdbcClientDetailsService(dataSource);
}
 
开发者ID:PacktPublishing,项目名称:OAuth-2.0-Cookbook,代码行数:5,代码来源:OAuth2Configuration.java

示例5: jdbcClientDetailsService

import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService; //导入依赖的package包/类
@Bean
public ClientDetailsService jdbcClientDetailsService() {
	return new JdbcClientDetailsService(dataSource);
}
 
开发者ID:DataAgg,项目名称:DAFramework,代码行数:5,代码来源:WebSecurityConfiguration.java

示例6: clientDetails

import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService; //导入依赖的package包/类
@Bean
public ClientDetailsService clientDetails() {
	return new JdbcClientDetailsService(dataSource);
}
 
开发者ID:JerryNiu,项目名称:cloud,代码行数:5,代码来源:AuthorizationServerConfig.java

示例7: clientDetailsService

import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService; //导入依赖的package包/类
@Bean
public JdbcClientDetailsService clientDetailsService() {
    return new JdbcClientDetailsService(dataSource);
}
 
开发者ID:TulevaEE,项目名称:onboarding-service,代码行数:5,代码来源:OAuthConfiguration.java

示例8: clientDetails

import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService; //导入依赖的package包/类
@Bean
public ClientDetailsService clientDetails() {
    if (dataSource == null) dataSource();
    return new JdbcClientDetailsService(dataSource);
}
 
开发者ID:ustcwudi,项目名称:springboot-seed,代码行数:6,代码来源:AuthorizationServerConfig.java

示例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;
}
 
开发者ID:AgainstWind,项目名称:spring-cloud-demos,代码行数:7,代码来源:TestAuthorizationConfig.java

示例10: clientDetails

import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService; //导入依赖的package包/类
@Bean
public ClientDetailsService clientDetails() {
    return new JdbcClientDetailsService(dataSource);
}
 
开发者ID:hulvyou,项目名称:spring-cloud-template,代码行数:5,代码来源:OAuth2ServerConfig.java

示例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;
}
 
开发者ID:FrontierPsychiatrist,项目名称:spring-oauth-example,代码行数:6,代码来源:IndexController.java

示例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);
}
 
开发者ID:openmhealth,项目名称:omh-dsu-ri,代码行数:9,代码来源:JdbcOAuth2SupportConfiguration.java

示例13: ClientController

import org.springframework.security.oauth2.provider.client.JdbcClientDetailsService; //导入依赖的package包/类
public ClientController(JdbcClientDetailsService clientDetailsService) {
    this.clientDetailsService = clientDetailsService;
}
 
开发者ID:FrontierPsychiatrist,项目名称:spring-oauth-example,代码行数:4,代码来源:ClientController.java

示例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());
}
 
开发者ID:FrontierPsychiatrist,项目名称:spring-oauth-example,代码行数:10,代码来源:OAuthConfiguration.java


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