org.surfnet.oaaas.auth
Interface OAuth2Validator

All Known Implementing Classes:
OAuth2ValidatorImpl

public interface OAuth2Validator

Responsible for validating the OAuth2 incoming requests


Nested Class Summary
static class OAuth2Validator.ValidationResponse
          See the spec
 
Field Summary
static String AUTHORIZATION_CODE_GRANT_RESPONSE_TYPE
           
static String BEARER
           
static String CLIENT_CREDENTIALS_GRANT_RESPONSE_TYPE
           
static String GRANT_TYPE_AUTHORIZATION_CODE
           
static String GRANT_TYPE_CLIENT_CREDENTIALS
           
static String GRANT_TYPE_REFRESH_TOKEN
           
static String IMPLICIT_GRANT_RESPONSE_TYPE
           
 
Method Summary
 OAuth2Validator.ValidationResponse validate(AccessTokenRequest request)
          Validate the AccessTokenRequest
 OAuth2Validator.ValidationResponse validate(AuthorizationRequest request)
          Validate the AuthorizationRequest
 

Field Detail

GRANT_TYPE_AUTHORIZATION_CODE

static final String GRANT_TYPE_AUTHORIZATION_CODE
See Also:
Constant Field Values

GRANT_TYPE_REFRESH_TOKEN

static final String GRANT_TYPE_REFRESH_TOKEN
See Also:
Constant Field Values

GRANT_TYPE_CLIENT_CREDENTIALS

static final String GRANT_TYPE_CLIENT_CREDENTIALS
See Also:
Constant Field Values

IMPLICIT_GRANT_RESPONSE_TYPE

static final String IMPLICIT_GRANT_RESPONSE_TYPE
See Also:
Constant Field Values

AUTHORIZATION_CODE_GRANT_RESPONSE_TYPE

static final String AUTHORIZATION_CODE_GRANT_RESPONSE_TYPE
See Also:
Constant Field Values

CLIENT_CREDENTIALS_GRANT_RESPONSE_TYPE

static final String CLIENT_CREDENTIALS_GRANT_RESPONSE_TYPE
See Also:
Constant Field Values

BEARER

static final String BEARER
See Also:
Constant Field Values
Method Detail

validate

OAuth2Validator.ValidationResponse validate(AuthorizationRequest request)
Validate the AuthorizationRequest

Parameters:
request - the Authorization Request with the data send from the client
Returns:
A OAuth2Validator.ValidationResponse specifying what is wrong (if any)

validate

OAuth2Validator.ValidationResponse validate(AccessTokenRequest request)
Validate the AccessTokenRequest

Parameters:
request - the AccessTokenRequest with the data send from the client
Returns:
A OAuth2Validator.ValidationResponse specifying what is wrong (if any)


Copyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.