public interface ResponseTypeHandler
Modifier and Type | Method and Description |
---|---|
org.forgerock.openam.oauth2.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 . |
Map.Entry<String,Token> handle(String tokenType, Set<String> scope, ResourceOwner resourceOwner, String clientId, String redirectUri, String nonce, OAuth2Request request, String codeChallenge, String codeChallengeMethod)
TokenStore
.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.org.forgerock.openam.oauth2.OAuth2Constants.UrlLocation getReturnLocation()
OAuth2Constants.UrlLocation
.Copyright © 2010-2016, ForgeRock All Rights Reserved.