org.apache.shindig.social.core.oauth2.validators
Class AuthCodeGrantValidator

java.lang.Object
  extended by org.apache.shindig.social.core.oauth2.validators.AuthCodeGrantValidator
All Implemented Interfaces:
OAuth2GrantValidator, OAuth2RequestValidator

public class AuthCodeGrantValidator
extends java.lang.Object
implements OAuth2GrantValidator


Constructor Summary
AuthCodeGrantValidator(OAuth2DataService service)
           
 
Method Summary
 java.lang.String getGrantType()
          Indicates the grant type this handler is registered to handle.
 void validateRequest(OAuth2NormalizedRequest servletRequest)
          Validates an OAuth 2.0 request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthCodeGrantValidator

@Inject
public AuthCodeGrantValidator(OAuth2DataService service)
Method Detail

getGrantType

public java.lang.String getGrantType()
Description copied from interface: OAuth2GrantValidator
Indicates the grant type this handler is registered to handle.

Specified by:
getGrantType in interface OAuth2GrantValidator

validateRequest

public void validateRequest(OAuth2NormalizedRequest servletRequest)
                     throws OAuth2Exception
Description copied from interface: OAuth2RequestValidator
Validates an OAuth 2.0 request.

Specified by:
validateRequest in interface OAuth2RequestValidator
Parameters:
servletRequest - is the normalized OAuth 2.0 request to validate
Throws:
OAuth2Exception - if the request failed to validate


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.