@Named public class OAuth2ValidatorImpl extends Object implements OAuth2Validator
OAuth2ValidatorOAuth2Validator.ValidationResponseAUTHORIZATION_CODE_GRANT_RESPONSE_TYPE, BEARER, CLIENT_CREDENTIALS_GRANT_RESPONSE_TYPE, GRANT_TYPE_AUTHORIZATION_CODE, GRANT_TYPE_CLIENT_CREDENTIALS, GRANT_TYPE_REFRESH_TOKEN, IMPLICIT_GRANT_RESPONSE_TYPE| Constructor and Description |
|---|
OAuth2ValidatorImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
determineRedirectUri(AuthorizationRequest authorizationRequest,
String responseType,
Client client) |
protected List<String> |
determineScopes(AuthorizationRequest authorizationRequest,
Client client) |
OAuth2Validator.ValidationResponse |
validate(AccessTokenRequest request)
Validate the
AccessTokenRequest |
OAuth2Validator.ValidationResponse |
validate(AuthorizationRequest authorizationRequest)
Validate the
AuthorizationRequest |
protected void |
validateAccessTokenRequest(AccessTokenRequest accessTokenRequest) |
protected void |
validateAttributes(AccessTokenRequest request) |
protected void |
validateAuthorizationRequest(AuthorizationRequest authorizationRequest) |
protected Client |
validateClient(AuthorizationRequest authorizationRequest) |
protected void |
validateGrantType(AccessTokenRequest request) |
protected String |
validateResponseType(AuthorizationRequest authorizationRequest) |
public OAuth2Validator.ValidationResponse validate(AuthorizationRequest authorizationRequest)
OAuth2ValidatorAuthorizationRequestvalidate in interface OAuth2ValidatorauthorizationRequest - the Authorization Request with the data send from the clientOAuth2Validator.ValidationResponse specifying what is wrong (if any)protected List<String> determineScopes(AuthorizationRequest authorizationRequest, Client client)
protected String determineRedirectUri(AuthorizationRequest authorizationRequest, String responseType, Client client)
protected Client validateClient(AuthorizationRequest authorizationRequest)
protected String validateResponseType(AuthorizationRequest authorizationRequest)
protected void validateAuthorizationRequest(AuthorizationRequest authorizationRequest)
public OAuth2Validator.ValidationResponse validate(AccessTokenRequest request)
OAuth2ValidatorAccessTokenRequestvalidate in interface OAuth2Validatorrequest - the AccessTokenRequest with the data send from the clientOAuth2Validator.ValidationResponse specifying what is wrong (if any)protected void validateGrantType(AccessTokenRequest request)
protected void validateAttributes(AccessTokenRequest request)
protected void validateAccessTokenRequest(AccessTokenRequest accessTokenRequest)
Copyright © 2012–2014 SURFnet bv, The Netherlands. All rights reserved.