public class DefaultResourceRequestValidator extends Object implements OAuth2ProtectedResourceValidator
| Constructor and Description |
|---|
DefaultResourceRequestValidator(OAuth2DataService store) |
| Modifier and Type | Method and Description |
|---|---|
void |
validateRequest(OAuth2NormalizedRequest req)
Validates an OAuth 2.0 request.
|
void |
validateRequestForResource(OAuth2NormalizedRequest req,
Object resourceRequest)
TODO (Matt): implement scope handling.
|
@Inject public DefaultResourceRequestValidator(OAuth2DataService store)
public void validateRequest(OAuth2NormalizedRequest req) throws OAuth2Exception
OAuth2RequestValidatorvalidateRequest in interface OAuth2RequestValidatorreq - is the normalized OAuth 2.0 request to validateOAuth2Exception - if the request failed to validatepublic void validateRequestForResource(OAuth2NormalizedRequest req, Object resourceRequest) throws OAuth2Exception
validateRequestForResource in interface OAuth2ProtectedResourceValidatorreq - is the normalized OAuth 2.0 requestresourceRequest - identifies the resource being requestedOAuth2ExceptionCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.