本文整理汇总了Java中com.hp.autonomy.hod.client.api.userstore.user.UserStoreUsersService类的典型用法代码示例。如果您正苦于以下问题:Java UserStoreUsersService类的具体用法?Java UserStoreUsersService怎么用?Java UserStoreUsersService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
UserStoreUsersService类属于com.hp.autonomy.hod.client.api.userstore.user包,在下文中一共展示了UserStoreUsersService类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: CookieHodAuthenticationProvider
import com.hp.autonomy.hod.client.api.userstore.user.UserStoreUsersService; //导入依赖的package包/类
/**
* Creates a new CookieHodAuthenticationProvider which fetches the given user metadata keys. Note: this will only work if
* the combined token has the privilege for the Get User Metadata API on their user store. Uses the given username
* resolver to set the name for a user's {@link HodAuthenticationPrincipal}. The GrantedAuthoritiesResolver is used
* to create a collection of authorities for an authenticated user.
*
* @param tokenRepository The token repository in which to store the HP Haven OnDemand Token
* @param authoritiesResolver Resolves authorities for authenticated users
* @param authenticationService The authentication service that will perform the authentication
* @param unboundTokenService The unbound token service to get the unbound authentication UUID from
* @param userStoreUsersService The user store users service that will get user metadata
* @param hodUserMetadataResolver The strategy to resolve users' metadata
* @param securityInfoRetriever Retrieves the securityInfoString for a given user
*/
public CookieHodAuthenticationProvider(
final TokenRepository tokenRepository,
final GrantedAuthoritiesResolver authoritiesResolver,
final AuthenticationService authenticationService,
final UnboundTokenService<TokenType.HmacSha1> unboundTokenService,
final UserStoreUsersService userStoreUsersService,
final HodUserMetadataResolver hodUserMetadataResolver,
final SecurityInfoRetriever securityInfoRetriever
) {
this.tokenRepository = tokenRepository;
this.authenticationService = authenticationService;
this.userStoreUsersService = userStoreUsersService;
this.hodUserMetadataResolver = hodUserMetadataResolver;
this.unboundTokenService = unboundTokenService;
this.authoritiesResolver = authoritiesResolver;
this.securityInfoRetriever = securityInfoRetriever;
}
示例2: HodAuthenticationProvider
import com.hp.autonomy.hod.client.api.userstore.user.UserStoreUsersService; //导入依赖的package包/类
/**
* Creates a new HodAuthenticationProvider which fetches the given user metadata keys. Note: this will only work if
* the combined token has the privilege for the Get User Metadata API on their user store. Uses the given username
* resolver to set the name for a user's {@link HodAuthenticationPrincipal}. The GrantedAuthoritiesResolver is used
* to create a collection of authorities for an authenticated user.
*
* @param tokenRepository The token repository in which to store the HP Haven OnDemand Token
* @param authoritiesResolver Resolves authorities for authenticated users
* @param authenticationService The authentication service that will perform the authentication
* @param unboundTokenService The unbound token service to get the unbound authentication UUID from
* @param userStoreUsersService The user store users service that will get user metadata
* @param hodUserMetadataResolver The strategy to resolve users' metadata
* @param securityInfoRetriever Retrieves the securityInfoString for a given user
*/
public HodAuthenticationProvider(
final TokenRepository tokenRepository,
final GrantedAuthoritiesResolver authoritiesResolver,
final AuthenticationService authenticationService,
final UnboundTokenService<TokenType.HmacSha1> unboundTokenService,
final UserStoreUsersService userStoreUsersService,
final HodUserMetadataResolver hodUserMetadataResolver,
final SecurityInfoRetriever securityInfoRetriever
) {
this.tokenRepository = tokenRepository;
this.authenticationService = authenticationService;
this.userStoreUsersService = userStoreUsersService;
this.hodUserMetadataResolver = hodUserMetadataResolver;
this.unboundTokenService = unboundTokenService;
this.authoritiesResolver = authoritiesResolver;
this.securityInfoRetriever = securityInfoRetriever;
}
示例3: userStoreUsersService
import com.hp.autonomy.hod.client.api.userstore.user.UserStoreUsersService; //导入依赖的package包/类
@Bean
public UserStoreUsersService userStoreUsersService(final HodServiceConfig<EntityType.Combined, TokenType.Simple> hodServiceConfig) {
return new UserStoreUsersServiceImpl(hodServiceConfig);
}