org.apache.oltu.oauth2.common.validators
Class AbstractValidator<T extends javax.servlet.http.HttpServletRequest>

java.lang.Object
  extended by org.apache.oltu.oauth2.common.validators.AbstractValidator<T>
All Implemented Interfaces:
OAuthValidator<T>
Direct Known Subclasses:
AssertionValidator, AuthorizationCodeValidator, BearerBodyOAuthValidator, BearerHeaderOAuthValidator, BearerQueryOAuthValidator, ClientCredentialValidator, CodeTokenValidator, CodeValidator, PasswordValidator, PushPullValidator, RefreshTokenValidator, TokenValidator, UnauthenticatedAuthorizationCodeValidator, UnauthenticatedPasswordValidator, UnauthenticatedRefreshTokenValidator

public abstract class AbstractValidator<T extends javax.servlet.http.HttpServletRequest>
extends Object
implements OAuthValidator<T>


Field Summary
protected  boolean enforceClientAuthentication
           
protected  List<String> notAllowedParams
           
protected  Map<String,String[]> optionalParams
           
protected  List<String> requiredParams
           
 
Constructor Summary
AbstractValidator()
           
 
Method Summary
 void performAllValidations(T request)
           
 void validateClientAuthenticationCredentials(T request)
           
 void validateContentType(T request)
           
 void validateMethod(T request)
           
 void validateNotAllowedParameters(T request)
           
 void validateOptionalParameters(T request)
           
 void validateRequiredParameters(T request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

requiredParams

protected List<String> requiredParams

optionalParams

protected Map<String,String[]> optionalParams

notAllowedParams

protected List<String> notAllowedParams

enforceClientAuthentication

protected boolean enforceClientAuthentication
Constructor Detail

AbstractValidator

public AbstractValidator()
Method Detail

validateMethod

public void validateMethod(T request)
                    throws OAuthProblemException
Specified by:
validateMethod in interface OAuthValidator<T extends javax.servlet.http.HttpServletRequest>
Throws:
OAuthProblemException

validateContentType

public void validateContentType(T request)
                         throws OAuthProblemException
Specified by:
validateContentType in interface OAuthValidator<T extends javax.servlet.http.HttpServletRequest>
Throws:
OAuthProblemException

validateRequiredParameters

public void validateRequiredParameters(T request)
                                throws OAuthProblemException
Specified by:
validateRequiredParameters in interface OAuthValidator<T extends javax.servlet.http.HttpServletRequest>
Throws:
OAuthProblemException

validateOptionalParameters

public void validateOptionalParameters(T request)
                                throws OAuthProblemException
Specified by:
validateOptionalParameters in interface OAuthValidator<T extends javax.servlet.http.HttpServletRequest>
Throws:
OAuthProblemException

validateNotAllowedParameters

public void validateNotAllowedParameters(T request)
                                  throws OAuthProblemException
Specified by:
validateNotAllowedParameters in interface OAuthValidator<T extends javax.servlet.http.HttpServletRequest>
Throws:
OAuthProblemException

validateClientAuthenticationCredentials

public void validateClientAuthenticationCredentials(T request)
                                             throws OAuthProblemException
Specified by:
validateClientAuthenticationCredentials in interface OAuthValidator<T extends javax.servlet.http.HttpServletRequest>
Throws:
OAuthProblemException

performAllValidations

public void performAllValidations(T request)
                           throws OAuthProblemException
Specified by:
performAllValidations in interface OAuthValidator<T extends javax.servlet.http.HttpServletRequest>
Throws:
OAuthProblemException


Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.