@Singleton public class AuthorizeRequestValidatorImpl extends Object implements AuthorizeRequestValidator
Constructor and Description |
---|
AuthorizeRequestValidatorImpl(ClientRegistrationStore clientRegistrationStore,
RedirectUriValidator redirectUriValidator,
OAuth2ProviderSettingsFactory providerSettingsFactory,
ResponseTypeValidator responseTypeValidator)
Constructs a new AuthorizeRequestValidatorImpl instance.
|
Modifier and Type | Method and Description |
---|---|
void |
validateRequest(OAuth2Request request)
Validates that the OAuth2 request contains the valid parameters for the OAuth2 authorize endpoint.
|
@Inject public AuthorizeRequestValidatorImpl(ClientRegistrationStore clientRegistrationStore, RedirectUriValidator redirectUriValidator, OAuth2ProviderSettingsFactory providerSettingsFactory, ResponseTypeValidator responseTypeValidator)
clientRegistrationStore
- An instance of the ClientRegistrationStore.redirectUriValidator
- An instance of the RedirectUriValidator.providerSettingsFactory
- An instance of the OAuth2ProviderSettingsFactory.responseTypeValidator
- An instance of the ResponseTypeValidator.public void validateRequest(OAuth2Request request) throws InvalidClientException, InvalidRequestException, RedirectUriMismatchException, UnsupportedResponseTypeException, ServerException, NotFoundException
validateRequest
in interface AuthorizeRequestValidator
request
- The OAuth2Request for the client requesting authorization. Must not be null
.InvalidClientException
- If either the request does not contain the client's id or the client fails to be
authenticated.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.UnsupportedResponseTypeException
- If the requested response type is not supported by either the client
or the OAuth2 provider.ServerException
- If any internal server error occurs.NotFoundException
- If the realm does not have an OAuth 2.0 provider service.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.