Package org.forgerock.oauth2.core
Class AuthorizationCodeRequestValidatorImpl
- java.lang.Object
-
- org.forgerock.oauth2.core.AuthorizationCodeRequestValidatorImpl
-
- All Implemented Interfaces:
AuthorizationCodeRequestValidator
public class AuthorizationCodeRequestValidatorImpl extends Object implements AuthorizationCodeRequestValidator
Implementation of the AuthorizationCodeRequestValidator for OAuth2 request validation.- Since:
- 12.0.0
-
-
Constructor Summary
Constructors Constructor Description AuthorizationCodeRequestValidatorImpl(RedirectUriValidator redirectUriValidator)Constructs a new AuthorizationCodeRequestValidatorImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidateRequest(OAuth2Request request, ClientRegistration clientRegistration)Validates that the OAuth2 request contains the valid parameters for the OAuth2 authorization code grant.
-
-
-
Constructor Detail
-
AuthorizationCodeRequestValidatorImpl
@Inject public AuthorizationCodeRequestValidatorImpl(RedirectUriValidator redirectUriValidator)
Constructs a new AuthorizationCodeRequestValidatorImpl.- Parameters:
redirectUriValidator- An instance of the RedirectUriValidator.
-
-
Method Detail
-
validateRequest
public void validateRequest(OAuth2Request request, ClientRegistration clientRegistration) throws InvalidRequestException, RedirectUriMismatchException, InvalidClientException
Validates that the OAuth2 request contains the valid parameters for the OAuth2 authorization code grant.- Specified by:
validateRequestin interfaceAuthorizationCodeRequestValidator- Parameters:
request- The OAuth2 request. Must not benull.clientRegistration- The registration of the client making the request.- Throws:
InvalidRequestException- If the request is missing any required parameters or is otherwise malformed.RedirectUriMismatchException- If the redirect uri on the request does not match the redirect uri registered for the client.InvalidClientException- If either the request does not contain the client's id or the client fails to be authenticated.
-
-