Package org.forgerock.oauth2.core
Class ClientCredentialsRequestValidatorImpl
- java.lang.Object
-
- org.forgerock.oauth2.core.ClientCredentialsRequestValidatorImpl
-
- All Implemented Interfaces:
ClientCredentialsRequestValidator
public class ClientCredentialsRequestValidatorImpl extends Object implements ClientCredentialsRequestValidator
Implementation of the request validator for the OAuth2 client credentials grant.- Since:
- 12.0.0
-
-
Constructor Summary
Constructors Constructor Description ClientCredentialsRequestValidatorImpl()
-
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 client credentials grant.
-
-
-
Method Detail
-
validateRequest
public void validateRequest(OAuth2Request request, ClientRegistration clientRegistration) throws UnauthorizedClientException
Validates that the OAuth2 request contains the valid parameters for the OAuth2 client credentials grant.- Specified by:
validateRequestin interfaceClientCredentialsRequestValidator- 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.
-
-