org.surfnet.oaaas.auth
Class OAuth2ValidatorImpl

java.lang.Object
  extended by org.surfnet.oaaas.auth.OAuth2ValidatorImpl
All Implemented Interfaces:
OAuth2Validator

@Named
public class OAuth2ValidatorImpl
extends Object
implements OAuth2Validator

Implementation of OAuth2Validator


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.surfnet.oaaas.auth.OAuth2Validator
OAuth2Validator.ValidationResponse
 
Field Summary
 
Fields inherited from interface org.surfnet.oaaas.auth.OAuth2Validator
AUTHORIZATION_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 Summary
OAuth2ValidatorImpl()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuth2ValidatorImpl

public OAuth2ValidatorImpl()
Method Detail

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.