@Singleton public class IdTokenResponseTypeHandler extends Object implements ResponseTypeHandler
Constructor and Description |
---|
IdTokenResponseTypeHandler(OpenIdConnectTokenStore tokenStore,
OpenAMSettings openAMSettings)
Constructs a new IdTokenResponseTypeHandler.
|
Modifier and Type | Method and Description |
---|---|
OAuth2Constants.UrlLocation |
getReturnLocation()
Returns the location in which the token should be returned,
OAuth2Constants.UrlLocation . |
Map.Entry<String,Token> |
handle(String tokenType,
Set<String> scope,
ResourceOwner resourceOwner,
String clientId,
String redirectUri,
String nonce,
OAuth2Request request,
String codeChallenge,
String codeChallengeMethod)
Handles the creating of a Token instance and storing the Token in the OAuth2 provider
TokenStore . |
@Inject public IdTokenResponseTypeHandler(OpenIdConnectTokenStore tokenStore, OpenAMSettings openAMSettings)
tokenStore
- An instance of the OpenIdConnectTokenStore.openAMSettings
- An instance of the OpenAMSettings.public Map.Entry<String,Token> handle(String tokenType, Set<String> scope, ResourceOwner resourceOwner, String clientId, String redirectUri, String nonce, OAuth2Request request, String codeChallenge, String codeChallengeMethod) throws ServerException, InvalidClientException, NotFoundException
TokenStore
.handle
in interface ResponseTypeHandler
tokenType
- The type of the token.scope
- The requested scope.resourceOwner
- The resource owner.clientId
- The client's id.redirectUri
- The redirect uri.nonce
- The nonce.request
- The OAuth2 request.codeChallenge
- The code challenge.codeChallengeMethod
- The code challenge method.Map.Entry
of the token name with the Token instance.ServerException
- If any internal server error occurs.InvalidClientException
- If either the request does not contain the client's id or the client fails to be
authenticated.NotFoundException
- If the realm does not have an OAuth 2.0 provider service.public OAuth2Constants.UrlLocation getReturnLocation()
OAuth2Constants.UrlLocation
.getReturnLocation
in interface ResponseTypeHandler
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.