本文整理汇总了Java中org.springframework.security.oauth2.provider.approval.ApprovalStore类的典型用法代码示例。如果您正苦于以下问题:Java ApprovalStore类的具体用法?Java ApprovalStore怎么用?Java ApprovalStore使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ApprovalStore类属于org.springframework.security.oauth2.provider.approval包,在下文中一共展示了ApprovalStore类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: OAuth2AuthorizationServerConfig
import org.springframework.security.oauth2.provider.approval.ApprovalStore; //导入依赖的package包/类
public OAuth2AuthorizationServerConfig(AccessTokenConverter accessTokenConverter, ApprovalStore approvalStore, AuthenticationManager authenticationManager, OAuth2ClientService clientService, TokenEnhancer tokenEnhancer, TokenStore tokenStore) {
this.accessTokenConverter = accessTokenConverter;
this.approvalStore = approvalStore;
this.authenticationManager = authenticationManager;
this.clientService = clientService;
this.tokenEnhancer = tokenEnhancer;
this.tokenStore = tokenStore;
}
开发者ID:codenergic,项目名称:theskeleton,代码行数:9,代码来源:OAuth2AuthorizationServerConfig.java
示例2: approvalStore
import org.springframework.security.oauth2.provider.approval.ApprovalStore; //导入依赖的package包/类
@Bean
@Autowired
public ApprovalStore approvalStore(TokenStore tokenStore) throws Exception {
TokenApprovalStore store = new TokenApprovalStore();
store.setTokenStore(tokenStore);
return store;
}
开发者ID:andrsam,项目名称:urlshortener,代码行数:8,代码来源:AuthorizationServerConfiguration.java
示例3: JwtTokenStore
import org.springframework.security.oauth2.provider.approval.ApprovalStore; //导入依赖的package包/类
public JwtTokenStore(JwtDecodingProcessor jwtProcessor,
@Nullable ApprovalStore approvalStore,
Clock clock) {
this.jwtProcessor = jwtProcessor;
this.approvalStore = approvalStore;
this.clock = clock;
}
开发者ID:unbroken-dome,项目名称:jsonwebtoken,代码行数:8,代码来源:JwtTokenStore.java
示例4: jwtTokenStore
import org.springframework.security.oauth2.provider.approval.ApprovalStore; //导入依赖的package包/类
@Bean
@ConditionalOnBean(JwtDecodingProcessor.class)
@ConditionalOnMissingBean(TokenStore.class)
public JwtTokenStore jwtTokenStore(JwtDecodingProcessor jwtProcessor,
ObjectProvider<ApprovalStore> approvalStore) {
if (clock != null) {
return new JwtTokenStore(jwtProcessor, approvalStore.getIfAvailable(), clock);
} else {
return new JwtTokenStore(jwtProcessor, approvalStore.getIfAvailable());
}
}
开发者ID:unbroken-dome,项目名称:jsonwebtoken,代码行数:12,代码来源:JwtOAuth2AutoConfiguration.java
示例5: clear
import org.springframework.security.oauth2.provider.approval.ApprovalStore; //导入依赖的package包/类
private void clear(ApprovalStore approvalStore) throws Exception {
if (approvalStore instanceof Advised) {
Advised advised = (Advised) tokenStore;
ApprovalStore target = (ApprovalStore) advised.getTargetSource().getTarget();
clear(target);
return;
}
if (approvalStore instanceof InMemoryApprovalStore) {
((InMemoryApprovalStore) approvalStore).clear();
}
if (approvalStore instanceof JdbcApprovalStore) {
JdbcTemplate template = new JdbcTemplate(dataSource);
template.execute("delete from oauth_approvals");
}
}
开发者ID:jfcorugedo,项目名称:spring-oauth2-samples,代码行数:16,代码来源:AbstractIntegrationTests.java
示例6: mockApprovalStore
import org.springframework.security.oauth2.provider.approval.ApprovalStore; //导入依赖的package包/类
@Bean
public ApprovalStore mockApprovalStore() {
return mock(ApprovalStore.class);
}
开发者ID:codenergic,项目名称:theskeleton,代码行数:5,代码来源:SecurityTest.java
示例7: approvalStore
import org.springframework.security.oauth2.provider.approval.ApprovalStore; //导入依赖的package包/类
@Bean
public ApprovalStore approvalStore() {
return new JdbcApprovalStore(dataSource);
}
开发者ID:PacktPublishing,项目名称:OAuth-2.0-Cookbook,代码行数:5,代码来源:OAuth2AuthorizationServer.java
示例8: approvalStore
import org.springframework.security.oauth2.provider.approval.ApprovalStore; //导入依赖的package包/类
@Bean
public ApprovalStore approvalStore() {
return new JdbcApprovalStore(dataSource);
}
开发者ID:JerryNiu,项目名称:cloud,代码行数:5,代码来源:AuthorizationServerConfig.java
示例9: approvalStore
import org.springframework.security.oauth2.provider.approval.ApprovalStore; //导入依赖的package包/类
@Bean
public ApprovalStore approvalStore() {
TokenApprovalStore tokenStore = new TokenApprovalStore();
tokenStore.setTokenStore(tokenStoreService);
return tokenStore;
}
开发者ID:venus-boot,项目名称:saluki,代码行数:7,代码来源:AuthorizationServerConfiguration.java
示例10: approvalStore
import org.springframework.security.oauth2.provider.approval.ApprovalStore; //导入依赖的package包/类
@Bean
ApprovalStore approvalStore() {
DataSource dataSource = context.getBean(DataSource.class);
return new JdbcApprovalStore(dataSource);
}
开发者ID:AgainstWind,项目名称:spring-cloud-demos,代码行数:6,代码来源:TestAuthorizationConfig.java
示例11: setApprovalStore
import org.springframework.security.oauth2.provider.approval.ApprovalStore; //导入依赖的package包/类
public void setApprovalStore(ApprovalStore approvalStore) {
this.approvalStore = approvalStore;
}
开发者ID:imCodePartnerAB,项目名称:iVIS,代码行数:4,代码来源:AccessConfirmationController.java
示例12: getApprovalStore
import org.springframework.security.oauth2.provider.approval.ApprovalStore; //导入依赖的package包/类
@Override
public ApprovalStore getApprovalStore() {
return fixture;
}
开发者ID:cedac-software,项目名称:spring-security-mongodb,代码行数:5,代码来源:MongoApprovalStoreTests.java
示例13: approvalStore
import org.springframework.security.oauth2.provider.approval.ApprovalStore; //导入依赖的package包/类
@Bean public ApprovalStore approvalStore() throws Exception {
JdbcApprovalStore store = new JdbcApprovalStore(securityDataSource);
return store;
}
开发者ID:ishaigor,项目名称:rest-retro-sample,代码行数:5,代码来源:OAuth2UserApprovalHandlerConfigurer.java
示例14: IndexController
import org.springframework.security.oauth2.provider.approval.ApprovalStore; //导入依赖的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
示例15: approvalStore
import org.springframework.security.oauth2.provider.approval.ApprovalStore; //导入依赖的package包/类
@Bean
public ApprovalStore approvalStore() {
return new JdbcApprovalStore(oauthDataSource());
}
开发者ID:FrontierPsychiatrist,项目名称:spring-oauth-example,代码行数:5,代码来源:OAuthConfiguration.java
示例16: approvalStore
import org.springframework.security.oauth2.provider.approval.ApprovalStore; //导入依赖的package包/类
@Bean
public ApprovalStore approvalStore() throws Exception {
TokenApprovalStore store = new TokenApprovalStore();
store.setTokenStore(tokenStore);
return store;
}
开发者ID:jungyang,项目名称:oauth-client-master,代码行数:7,代码来源:OAuth2ServerConfig.java
示例17: getApprovalStore
import org.springframework.security.oauth2.provider.approval.ApprovalStore; //导入依赖的package包/类
protected abstract ApprovalStore getApprovalStore();
开发者ID:cedac-software,项目名称:spring-security-mongodb,代码行数:2,代码来源:AbstractTestApprovalStore.java
注:本文中的org.springframework.security.oauth2.provider.approval.ApprovalStore类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论