public class AuthorizationCodeRequestValidatorImpl extends Object implements AuthorizationCodeRequestValidator
Constructor and Description |
---|
AuthorizationCodeRequestValidatorImpl(RedirectUriValidator redirectUriValidator)
Constructs a new AuthorizationCodeRequestValidatorImpl.
|
Modifier and Type | Method and Description |
---|---|
void |
validateRequest(OAuth2Request request,
ClientRegistration clientRegistration)
Validates that the OAuth2 request contains the valid parameters for the OAuth2 authorization code grant.
|
@Inject public AuthorizationCodeRequestValidatorImpl(RedirectUriValidator redirectUriValidator)
redirectUriValidator
- An instance of the RedirectUriValidator.public void validateRequest(OAuth2Request request, ClientRegistration clientRegistration) throws InvalidRequestException, RedirectUriMismatchException, InvalidClientException
validateRequest
in interface AuthorizationCodeRequestValidator
request
- The OAuth2 request. Must not be null
.clientRegistration
- The registration of the client making the request.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.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.