Package org.forgerock.oauth2.core
Interface PasswordCredentialsRequestValidator
-
- All Known Implementing Classes:
ConfirmationKeyValidator,PasswordCredentialsRequestValidatorImpl
public interface PasswordCredentialsRequestValidatorRequest validator for the OAuth2 password credentials grant.
Request validators validate that the specified OAuth2 request is valid be checking that the request contains all of the required parameters.- Since:
- 12.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidvalidateRequest(OAuth2Request request, ClientRegistration clientRegistration)Validates that the OAuth2 request contains the valid parameters for the OAuth2 password credentials grant.
-
-
-
Method Detail
-
validateRequest
void validateRequest(OAuth2Request request, ClientRegistration clientRegistration) throws UnauthorizedClientException, InvalidRequestException, RedirectUriMismatchException, InvalidClientException
Validates that the OAuth2 request contains the valid parameters for the OAuth2 password credentials grant.- Parameters:
request- The OAuth2 request. Must not benull.clientRegistration- The registration of the client making the request.- Throws:
UnauthorizedClientException- If the client's authorization fails.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.IllegalArgumentException- If the request is missing any required parameters.InvalidRequestException
-
-