org.surfnet.oaaas.auth
Class OAuth2ValidatorImpl
java.lang.Object
org.surfnet.oaaas.auth.OAuth2ValidatorImpl
- All Implemented Interfaces:
- OAuth2Validator
@Named
public class OAuth2ValidatorImpl
- extends Object
- implements OAuth2Validator
Implementation of OAuth2Validator
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OAuth2ValidatorImpl
public OAuth2ValidatorImpl()
validate
public OAuth2Validator.ValidationResponse validate(AuthorizationRequest authorizationRequest)
- Description copied from interface:
OAuth2Validator
- Validate the
AuthorizationRequest
- Specified by:
validate in interface OAuth2Validator
- Parameters:
authorizationRequest - the Authorization Request with the data send from the client
- Returns:
- A
OAuth2Validator.ValidationResponse specifying what is wrong (if any)
determineScopes
protected List<String> determineScopes(AuthorizationRequest authorizationRequest,
Client client)
determineRedirectUri
protected String determineRedirectUri(AuthorizationRequest authorizationRequest,
String responseType,
Client client)
validateClient
protected Client validateClient(AuthorizationRequest authorizationRequest)
validateResponseType
protected String validateResponseType(AuthorizationRequest authorizationRequest)
validateAuthorizationRequest
protected void validateAuthorizationRequest(AuthorizationRequest authorizationRequest)
validate
public OAuth2Validator.ValidationResponse validate(AccessTokenRequest request)
- Description copied from interface:
OAuth2Validator
- Validate the
AccessTokenRequest
- Specified by:
validate in interface OAuth2Validator
- Parameters:
request - the AccessTokenRequest with the data send from the client
- Returns:
- A
OAuth2Validator.ValidationResponse specifying what is wrong (if any)
validateGrantType
protected void validateGrantType(AccessTokenRequest request)
validateAttributes
protected void validateAttributes(AccessTokenRequest request)
validateAccessTokenRequest
protected void validateAccessTokenRequest(AccessTokenRequest accessTokenRequest)
Copyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.