@Singleton public class TokenInfoService extends Object
Constructor and Description |
---|
TokenInfoService(OAuth2ProviderSettingsFactory providerSettingsFactory,
AccessTokenVerifier headerTokenVerifier,
AccessTokenVerifier queryTokenVerifier,
ClientRegistrationStore clientRegistrationStore)
Constructs a new TokenInfoServiceImpl.
|
Modifier and Type | Method and Description |
---|---|
org.forgerock.json.JsonValue |
getTokenInfo(OAuth2Request request)
Returns a Json representation of the token's information that is on the OAuth2 request.
|
@Inject public TokenInfoService(OAuth2ProviderSettingsFactory providerSettingsFactory, @Named(value="realm-agnostic-header") AccessTokenVerifier headerTokenVerifier, @Named(value="realm-agnostic-query-param") AccessTokenVerifier queryTokenVerifier, ClientRegistrationStore clientRegistrationStore)
providerSettingsFactory
- An instance of the OAuth2ProviderSettingsFactory.headerTokenVerifier
- Basic HTTP access token verification.queryTokenVerifier
- Query string access token verification.clientRegistrationStore
- An instance of the ClientRegistrationStore.public org.forgerock.json.JsonValue getTokenInfo(OAuth2Request request) throws InvalidTokenException, InvalidRequestException, ExpiredTokenException, ServerException, BadRequestException, InvalidGrantException, NotFoundException
request
- The OAuth2 request.InvalidRequestException
- If the request is missing any required parameters or is otherwise malformed.ServerException
- If any internal server error occurs.BadRequestException
- If the request is malformed.InvalidGrantException
- If the given token is not an Access token.NotFoundException
- If the realm does not have an OAuth 2.0 provider service.InvalidTokenException
ExpiredTokenException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.