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

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

public class ClientCredentialsGrantValidator
extends java.lang.Object
implements OAuth2GrantValidator


Constructor Summary
ClientCredentialsGrantValidator(OAuth2DataService service)
           
 
Method Summary
 java.lang.String getGrantType()
          Indicates the grant type this handler is registered to handle.
 void setOAuth2DataService(OAuth2DataService service)
           
 void validateRequest(OAuth2NormalizedRequest req)
          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

ClientCredentialsGrantValidator

@Inject
public ClientCredentialsGrantValidator(OAuth2DataService service)
Method Detail

setOAuth2DataService

public void setOAuth2DataService(OAuth2DataService service)

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 req)
                     throws OAuth2Exception
Description copied from interface: OAuth2RequestValidator
Validates an OAuth 2.0 request.

Specified by:
validateRequest in interface OAuth2RequestValidator
Parameters:
req - 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.