public class UserInfoService extends Object
Constructor and Description |
---|
UserInfoService(TokenStore tokenStore,
OAuth2ProviderSettingsFactory providerSettingsFactory,
AccessTokenVerifier headerTokenVerifier,
AccessTokenVerifier formTokenVerifier,
ClientRegistrationStore clientRegistrationStore)
Constructs a new UserInfoServiceImpl.
|
Modifier and Type | Method and Description |
---|---|
org.forgerock.json.JsonValue |
getUserInfo(OAuth2Request request)
Gets the user's information for the specified access token.
|
@Inject public UserInfoService(TokenStore tokenStore, OAuth2ProviderSettingsFactory providerSettingsFactory, @Named(value="header") AccessTokenVerifier headerTokenVerifier, @Named(value="form-body") AccessTokenVerifier formTokenVerifier, ClientRegistrationStore clientRegistrationStore)
tokenStore
- An instance of the TokenStore.providerSettingsFactory
- An instance of the OAuth2ProviderSettingsFactory.headerTokenVerifier
- An instance of the AccessTokenVerifier to validate Authorization header.formTokenVerifier
- An instance of the AccessTokenVerifier to validate form body.clientRegistrationStore
- An instance of the client registration store.public org.forgerock.json.JsonValue getUserInfo(OAuth2Request request) throws OAuth2Exception
request
- The OAuth2 request.OAuth2Exception
- If there is any issue in getting the user information.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.