org.surfnet.oaaas.auth
Interface OAuth2Validator
- All Known Implementing Classes:
- OAuth2ValidatorImpl
public interface OAuth2Validator
Responsible for validating the OAuth2 incoming requests
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
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.