本文整理汇总了Java中org.springframework.security.oauth2.provider.token.AuthenticationKeyGenerator类的典型用法代码示例。如果您正苦于以下问题:Java AuthenticationKeyGenerator类的具体用法?Java AuthenticationKeyGenerator怎么用?Java AuthenticationKeyGenerator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AuthenticationKeyGenerator类属于org.springframework.security.oauth2.provider.token包,在下文中一共展示了AuthenticationKeyGenerator类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getAuthenticationKeyGenerator
import org.springframework.security.oauth2.provider.token.AuthenticationKeyGenerator; //导入依赖的package包/类
@Bean
public AuthenticationKeyGenerator getAuthenticationKeyGenerator() {
return new DefaultAuthenticationKeyGenerator();
}
示例2: MongoTokenStore
import org.springframework.security.oauth2.provider.token.AuthenticationKeyGenerator; //导入依赖的package包/类
@Autowired
public MongoTokenStore(final MongoOAuth2AccessTokenRepository mongoOAuth2AccessTokenRepository,
final MongoOAuth2RefreshTokenRepository mongoOAuth2RefreshTokenRepository,
final AuthenticationKeyGenerator authenticationKeyGenerator) {
this.mongoOAuth2AccessTokenRepository = mongoOAuth2AccessTokenRepository;
this.mongoOAuth2RefreshTokenRepository = mongoOAuth2RefreshTokenRepository;
this.authenticationKeyGenerator = authenticationKeyGenerator;
}
示例3: MongoTokenStore
import org.springframework.security.oauth2.provider.token.AuthenticationKeyGenerator; //导入依赖的package包/类
@Autowired
public MongoTokenStore(final MongoOAuth2AccessTokenRepository mongoOAuth2AccessTokenRepository,
final MongoOAuth2RefreshTokenRepository mongoOAuth2RefreshTokenRepository,
final AuthenticationKeyGenerator authenticationKeyGenerator) {
this.mongoOAuth2AccessTokenRepository = mongoOAuth2AccessTokenRepository;
this.mongoOAuth2RefreshTokenRepository = mongoOAuth2RefreshTokenRepository;
this.authenticationKeyGenerator = authenticationKeyGenerator;
}
示例4: setAuthenticationKeyGenerator
import org.springframework.security.oauth2.provider.token.AuthenticationKeyGenerator; //导入依赖的package包/类
public void setAuthenticationKeyGenerator(AuthenticationKeyGenerator authenticationKeyGenerator) {
this.authenticationKeyGenerator = authenticationKeyGenerator;
}
示例5: setAuthenticationKeyGenerator
import org.springframework.security.oauth2.provider.token.AuthenticationKeyGenerator; //导入依赖的package包/类
public void setAuthenticationKeyGenerator(AuthenticationKeyGenerator authenticationKeyGenerator) {
this.authenticationKeyGenerator = authenticationKeyGenerator;
}
示例6: authenticationKeyGenerator
import org.springframework.security.oauth2.provider.token.AuthenticationKeyGenerator; //导入依赖的package包/类
@Bean
public AuthenticationKeyGenerator authenticationKeyGenerator() {
return new DefaultAuthenticationKeyGenerator();
}
开发者ID:cloudade,项目名称:authorization-server-with-mongodb,代码行数:5,代码来源:SpringSecurityMongoConfiguration.java